From: Will Deacon Date: Tue, 28 Feb 2012 14:26:42 +0000 (+0000) Subject: ARM: nommu: provide dummy cpu_switch_mm implementation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=02ed1c7bba57b66c9a2f3146c935af12a93f2d76;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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__ */