Ver Fonte

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>
Will Deacon há 13 anos atrás
pai
commit
02ed1c7bba
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      arch/arm/include/asm/proc-fns.h

+ 4 - 0
arch/arm/include/asm/proc-fns.h

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