sh: use asm-generic/mmu_context.h for no-op implementations
[sfrench/cifs-2.6.git] / arch / sh / include / asm / mmu_context.h
index 461b1304580b5741009a3e40ccb945dd6bdf9f16..78eef4e7d5df2816a99a12c87ab1367942c25f99 100644 (file)
@@ -84,6 +84,7 @@ static inline void get_mmu_context(struct mm_struct *mm, unsigned int cpu)
  * Initialize the context related info for a new mm_struct
  * instance.
  */
+#define init_new_context init_new_context
 static inline int init_new_context(struct task_struct *tsk,
                                   struct mm_struct *mm)
 {
@@ -120,9 +121,7 @@ static inline void switch_mm(struct mm_struct *prev,
                        activate_context(next, cpu);
 }
 
-#define activate_mm(prev, next)                switch_mm((prev),(next),NULL)
-#define deactivate_mm(tsk,mm)          do { } while (0)
-#define enter_lazy_tlb(mm,tsk)         do { } while (0)
+#include <asm-generic/mmu_context.h>
 
 #else