ARM: remove unnecessary cache flush
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 24 Dec 2009 12:57:01 +0000 (12:57 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 14 Apr 2010 12:13:25 +0000 (13:13 +0100)
This cache flush occurs when we first insert a page into the page
tables, where a page did not exist previously.  There can be no
cache lines associated with this virtual mapping, so this cache
flush is redundant.

Tested-by: Mike Rapoport <mike@compulab.co.il>
Tested-by: Mikael Pettersson <mikpe at it.uu.se>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/fault-armv.c

index c9b97e9..82df01a 100644 (file)
@@ -133,8 +133,6 @@ make_coherent(struct address_space *mapping, struct vm_area_struct *vma,
        flush_dcache_mmap_unlock(mapping);
        if (aliases)
                do_adjust_pte(vma, addr, pfn, ptep);
-       else
-               flush_cache_page(vma, addr, pfn);
 }
 
 /*