summaryrefslogtreecommitdiff
path: root/arch/arm/include
diff options
context:
space:
mode:
authorHeechul Yun <hyun@nvidia.com>2011-07-05 19:03:55 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:47:41 -0800
commit671dd66e90b6ea33bddc680278933d84cf94019b (patch)
tree4a1667cedbc2e590d6cab03e42726b09702cf61c /arch/arm/include
parent16cf91484364b27fe463c81e8eaeb7668c6de954 (diff)
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 <hyun@nvidia.com> Tested-by: Heechul Yun <hyun@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: R214ce4b138abb18e1cfe79465087c39ead248d72
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/pgalloc.h4
1 files changed, 4 insertions, 0 deletions
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);
}