]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-arm/mmu_context.h
Merge branch 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik...
[linux-2.6-omap-h63xx.git] / include / asm-arm / mmu_context.h
index 4af9c411c617933438af278113f042bf15113cd9..81c59facea3bead1184df5cf0359058eb9a2d366 100644 (file)
@@ -13,6 +13,8 @@
 #ifndef __ASM_ARM_MMU_CONTEXT_H
 #define __ASM_ARM_MMU_CONTEXT_H
 
+#include <linux/compiler.h>
+#include <asm/cacheflush.h>
 #include <asm/proc-fns.h>
 
 #if __LINUX_ARM_ARCH__ >= 6
@@ -86,7 +88,8 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
                cpu_set(cpu, next->cpu_vm_mask);
                check_context(next);
                cpu_switch_mm(next->pgd, next);
-               cpu_clear(cpu, prev->cpu_vm_mask);
+               if (cache_is_vivt())
+                       cpu_clear(cpu, prev->cpu_vm_mask);
        }
 }