]> err.no Git - linux-2.6/blobdiff - include/asm-arm/mmu_context.h
Pull acpi_device_handle_cleanup into release branch
[linux-2.6] / include / asm-arm / mmu_context.h
index 3d4b810d8c3869f2265610266766d29403ef043f..9fadb01e030d15a4fd67dda4ac143ff52406be46 100644 (file)
@@ -13,6 +13,7 @@
 #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>
 
@@ -81,6 +82,7 @@ static inline void
 switch_mm(struct mm_struct *prev, struct mm_struct *next,
          struct task_struct *tsk)
 {
+#ifdef CONFIG_MMU
        unsigned int cpu = smp_processor_id();
 
        if (prev != next) {
@@ -90,6 +92,7 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
                if (cache_is_vivt())
                        cpu_clear(cpu, prev->cpu_vm_mask);
        }
+#endif
 }
 
 #define deactivate_mm(tsk,mm)  do { } while (0)