summaryrefslogtreecommitdiffstats
path: root/arch/tile/mm/fault.c
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-08-07 17:07:52 +0200
committerChris Metcalf <cmetcalf@tilera.com>2013-08-13 22:25:56 +0200
commit1182b69cb24c4f7d7ee8c8afe41b5ab2bc05a15b (patch)
tree7a3fb2146113a2888fafabc0ddd30bfe6047d1e4 /arch/tile/mm/fault.c
parenttile: fix some issues in hugepage support (diff)
downloadlinux-1182b69cb24c4f7d7ee8c8afe41b5ab2bc05a15b.tar.xz
linux-1182b69cb24c4f7d7ee8c8afe41b5ab2bc05a15b.zip
tile: remove calls to arch_flush_lazy_mmu_mode()
Since it's a no-op on tile anyway, there's no reason to be calling it in tile-specific code. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/mm/fault.c')
-rw-r--r--arch/tile/mm/fault.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/tile/mm/fault.c b/arch/tile/mm/fault.c
index 7863298dad4d..502664ae1e6e 100644
--- a/arch/tile/mm/fault.c
+++ b/arch/tile/mm/fault.c
@@ -122,10 +122,9 @@ static inline pmd_t *vmalloc_sync_one(pgd_t *pgd, unsigned long address)
pmd_k = pmd_offset(pud_k, address);
if (!pmd_present(*pmd_k))
return NULL;
- if (!pmd_present(*pmd)) {
+ if (!pmd_present(*pmd))
set_pmd(pmd, *pmd_k);
- arch_flush_lazy_mmu_mode();
- } else
+ else
BUG_ON(pmd_ptfn(*pmd) != pmd_ptfn(*pmd_k));
return pmd_k;
}