summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/proc-fns.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-arm/proc-fns.h')
-rw-r--r--include/asm-arm/proc-fns.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-arm/proc-fns.h b/include/asm-arm/proc-fns.h
index 106045edb86..1bde92cdaeb 100644
--- a/include/asm-arm/proc-fns.h
+++ b/include/asm-arm/proc-fns.h
@@ -13,7 +13,6 @@
#ifdef __KERNEL__
-#include <linux/config.h>
/*
* Work out if we need multiple CPU support
@@ -166,6 +165,8 @@
#include <asm/memory.h>
+#ifdef CONFIG_MMU
+
#define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
#define cpu_get_pgd() \
@@ -177,6 +178,8 @@
(pgd_t *)phys_to_virt(pg); \
})
+#endif
+
#endif /* __ASSEMBLY__ */
#endif /* __KERNEL__ */
#endif /* __ASM_PROCFNS_H */