summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2013-03-11 20:37:27 (GMT)
committerScott Wood <scottwood@freescale.com>2014-04-10 00:19:54 (GMT)
commitdad3e3263a3b3978630c1703e6dbd0c41ad07bc1 (patch)
tree46d811072d7517eb295e98826be91579a4513a96 /arch/arm
parent88552ea8ca29ad1f2c4a961f663f8c362df97fa7 (diff)
downloadlinux-fsl-qoriq-dad3e3263a3b3978630c1703e6dbd0c41ad07bc1.tar.xz
arm/highmem: flush tlb on unmap
The tlb should be flushed on unmap and thus make the mapping entry invalid. This is only done in the non-debug case which does not look right. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mm/highmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mm/highmem.c b/arch/arm/mm/highmem.c
index 21b9e1b..3688c8b 100644
--- a/arch/arm/mm/highmem.c
+++ b/arch/arm/mm/highmem.c
@@ -95,10 +95,10 @@ void __kunmap_atomic(void *kvaddr)
__cpuc_flush_dcache_area((void *)vaddr, PAGE_SIZE);
#ifdef CONFIG_DEBUG_HIGHMEM
BUG_ON(vaddr != __fix_to_virt(FIX_KMAP_BEGIN + idx));
- set_top_pte(vaddr, __pte(0));
#else
(void) idx; /* to kill a warning */
#endif
+ set_top_pte(vaddr, __pte(0));
kmap_atomic_idx_pop();
} else if (vaddr >= PKMAP_ADDR(0) && vaddr < PKMAP_ADDR(LAST_PKMAP)) {
/* this address was obtained through kmap_high_get() */