aboutsummaryrefslogtreecommitdiffstats
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 @@
13 13
14#ifdef __KERNEL__ 14#ifdef __KERNEL__
15 15
16#include <linux/config.h>
17 16
18/* 17/*
19 * Work out if we need multiple CPU support 18 * Work out if we need multiple CPU support
@@ -166,6 +165,8 @@
166 165
167#include <asm/memory.h> 166#include <asm/memory.h>
168 167
168#ifdef CONFIG_MMU
169
169#define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm) 170#define cpu_switch_mm(pgd,mm) cpu_do_switch_mm(virt_to_phys(pgd),mm)
170 171
171#define cpu_get_pgd() \ 172#define cpu_get_pgd() \
@@ -177,6 +178,8 @@
177 (pgd_t *)phys_to_virt(pg); \ 178 (pgd_t *)phys_to_virt(pg); \
178 }) 179 })
179 180
181#endif
182
180#endif /* __ASSEMBLY__ */ 183#endif /* __ASSEMBLY__ */
181#endif /* __KERNEL__ */ 184#endif /* __KERNEL__ */
182#endif /* __ASM_PROCFNS_H */ 185#endif /* __ASM_PROCFNS_H */