From 671dd66e90b6ea33bddc680278933d84cf94019b Mon Sep 17 00:00:00 2001 From: Heechul Yun Date: Tue, 5 Jul 2011 19:03:55 -0700 Subject: ARM: remove unnecessary dcache_clean_area Cortex-A9 has PIPT D-cache which do not require clean the cache on creating page table. Original-Change-Id: I42d528be83ea8def96045c7e575c7b3ed95f5980 Reviewed-on: http://git-master/r/40505 Reviewed-by: Heechul Yun Tested-by: Heechul Yun Reviewed-by: Krishna Reddy Reviewed-by: Scott Williams Rebase-Id: R214ce4b138abb18e1cfe79465087c39ead248d72 --- arch/arm/include/asm/pgalloc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/arm/include/asm/pgalloc.h') diff --git a/arch/arm/include/asm/pgalloc.h b/arch/arm/include/asm/pgalloc.h index 22de005f159c..9a8099ed3ade 100644 --- a/arch/arm/include/asm/pgalloc.h +++ b/arch/arm/include/asm/pgalloc.h @@ -64,8 +64,10 @@ pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr) pte_t *pte; pte = (pte_t *)__get_free_page(PGALLOC_GFP); +#if !defined(CONFIG_CPU_CACHE_V7) || !defined(CONFIG_SMP) if (pte) clean_pte_table(pte); +#endif return pte; } @@ -81,8 +83,10 @@ pte_alloc_one(struct mm_struct *mm, unsigned long addr) pte = alloc_pages(PGALLOC_GFP, 0); #endif if (pte) { +#if !defined(CONFIG_CPU_CACHE_V7) || !defined(CONFIG_SMP) if (!PageHighMem(pte)) clean_pte_table(page_address(pte)); +#endif pgtable_page_ctor(pte); } -- cgit v1.2.3