summaryrefslogtreecommitdiff
path: root/arch/arm/mm
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/mm
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/mm')
-rw-r--r--arch/arm/mm/pgd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mm/pgd.c b/arch/arm/mm/pgd.c
index b2027c154b2a..ad249e98a942 100644
--- a/arch/arm/mm/pgd.c
+++ b/arch/arm/mm/pgd.c
@@ -40,8 +40,9 @@ pgd_t *pgd_alloc(struct mm_struct *mm)
memcpy(new_pgd + USER_PTRS_PER_PGD, init_pgd + USER_PTRS_PER_PGD,
(PTRS_PER_PGD - USER_PTRS_PER_PGD) * sizeof(pgd_t));
+#if !defined(CONFIG_CPU_CACHE_V7) || !defined(CONFIG_SMP)
clean_dcache_area(new_pgd, PTRS_PER_PGD * sizeof(pgd_t));
-
+#endif
if (!vectors_high()) {
/*
* On ARM, first page must always be allocated since it