From: Catalin Marinas Date: Mon, 13 Sep 2010 14:57:05 +0000 (+0100) Subject: ARM: 6378/1: Allow lazy cache flushing via PG_arch_1 for highmem pages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fc73099dd25df2c5181b7bad57d1faa5cd12d3c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ARM: 6378/1: Allow lazy cache flushing via PG_arch_1 for highmem pages Commit d73cd42 forced non-lazy cache flushing of highmem pages in flush_dcache_page(). This isn't needed since __flush_dcache_page() (called lazily from update_mmu_cache) can handle highmem pages (fixed by commit 7e5a69e). Signed-off-by: Catalin Marinas Acked-by: Nicolas Pitre Signed-off-by: Russell King --- diff --git a/arch/arm/mm/flush.c b/arch/arm/mm/flush.c index c6844cb9b50..87dd5ffdfa2 100644 --- a/arch/arm/mm/flush.c +++ b/arch/arm/mm/flush.c @@ -247,7 +247,7 @@ void flush_dcache_page(struct page *page) mapping = page_mapping(page); #ifndef CONFIG_SMP - if (!PageHighMem(page) && mapping && !mapping_mapped(mapping)) + if (mapping && !mapping_mapped(mapping)) set_bit(PG_dcache_dirty, &page->flags); else #endif