[PATCH 2/2] ARM: remove unnecessary flush of anon pages in flush(_kernel)_dcache_page()

Catalin Marinas catalin.marinas at arm.com
Thu Sep 27 08:23:28 EDT 2012


On Wed, Sep 26, 2012 at 10:40:59PM +0100, Simon Baatz wrote:
> On non-aliasing VIPT D-caches, there is no need to flush the kernel
> mapping of anon pages in flush_kernel_dcache_page() and
> flush_dcache_page() directly.  If the page is mapped as executable
> later, the necessary D/I-cache flush will be done in
> __sync_icache_dcache().
> 
> Signed-off-by: Simon Baatz <gmbnomis at gmail.com>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Cc: Russell King <linux at arm.linux.org.uk>

I would suggest you make this patch the first one rather than
introducing __flush_kernel_dcache_page() and subsequently replacing its
code.

-- 
Catalin



More information about the linux-arm-kernel mailing list