From: Russell King Date: Sat, 24 Oct 2009 22:05:34 +0000 (+0100) Subject: ARM: Remove __flush_icache_all() from __flush_dcache_page() X-Git-Tag: v2.6.33-rc1~384^2~5^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f91fb05d826a43063fa0aa2ec30c23d3993a208d;p=platform%2Fkernel%2Flinux-exynos.git ARM: Remove __flush_icache_all() from __flush_dcache_page() Both call sites for __flush_dcache_page() end up calling __flush_icache_all() themselves, so having __flush_dcache_page() do this as well is wasteful. Remove the duplicated icache flushing. Signed-off-by: Russell King --- diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index 302d665..dc66f86 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c @@ -134,11 +134,9 @@ void __flush_dcache_page(struct address_space *mapping, struct page *page) * we only need to do one flush - which would be at the relevant * userspace colour, which is congruent with page->index. */ - if (mapping && cache_is_vipt_aliasing()) { + if (mapping && cache_is_vipt_aliasing()) flush_pfn_alias(page_to_pfn(page), page->index << PAGE_CACHE_SHIFT); - __flush_icache_all(); - } } static void __flush_dcache_aliases(struct address_space *mapping, struct page *page)