ARM: nommu: provide dummy cpu_switch_mm implementation
authorWill Deacon <will.deacon@arm.com>
Tue, 28 Feb 2012 14:26:42 +0000 (14:26 +0000)
committerJonathan Austin <jonathan.austin@arm.com>
Fri, 7 Jun 2013 16:02:43 +0000 (17:02 +0100)
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>
arch/arm/include/asm/proc-fns.h

index f3628fb3d2b331a9dba24fc29fdb8bf4b3c6b3d1..a6c99fe62b820afa0b0a980069a9e60aeb68d260 100644 (file)
@@ -137,6 +137,10 @@ extern void cpu_resume(void);
        })
 #endif
 
+#else  /*!CONFIG_MMU */
+
+#define cpu_switch_mm(pgd,mm)  { }
+
 #endif
 
 #endif /* __ASSEMBLY__ */