From: Russell King Date: Thu, 24 Dec 2009 12:57:01 +0000 (+0000) Subject: ARM: remove unnecessary cache flush X-Git-Tag: v2.6.35-rc1~503^2~4^5~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f76348a360fe92063e07a8f54b0c1ea67f91e76c;p=platform%2Fupstream%2Fkernel-adaptation-pc.git ARM: remove unnecessary cache flush 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 Tested-by: Mikael Pettersson Signed-off-by: Russell King --- diff --git a/arch/arm/mm/fault-armv.c b/arch/arm/mm/fault-armv.c index c9b97e9..82df01a 100644 --- a/arch/arm/mm/fault-armv.c +++ b/arch/arm/mm/fault-armv.c @@ -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); } /*