summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2012-02-28 15:26:42 +0100
committerJonathan Austin <jonathan.austin@arm.com>2013-06-07 18:02:43 +0200
commit02ed1c7bba57b66c9a2f3146c935af12a93f2d76 (patch)
treec83b37a01d91c0bc9c736a9a6e2460f7434aedb7 /arch/arm/include
parentARM: nommu: define dummy TLB operations for nommu configurations (diff)
downloadlinux-02ed1c7bba57b66c9a2f3146c935af12a93f2d76.tar.xz
linux-02ed1c7bba57b66c9a2f3146c935af12a93f2d76.zip
ARM: nommu: provide dummy cpu_switch_mm implementation
cpu_switch_mm is a logical nop on nommu systems, so define it as such when !CONFIG_MMU. Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/proc-fns.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/proc-fns.h b/arch/arm/include/asm/proc-fns.h
index f3628fb3d2b3..a6c99fe62b82 100644
--- a/arch/arm/include/asm/proc-fns.h
+++ b/arch/arm/include/asm/proc-fns.h
@@ -137,6 +137,10 @@ extern void cpu_resume(void);
})
#endif
+#else /*!CONFIG_MMU */
+
+#define cpu_switch_mm(pgd,mm) { }
+
#endif
#endif /* __ASSEMBLY__ */