sh: Conver to asm-generic/mmu_context.h.
authorPaul Mundt <lethal@linux-sh.org>
Sun, 14 Jun 2009 14:23:41 +0000 (23:23 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Sun, 14 Jun 2009 14:23:41 +0000 (23:23 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/mmu_context.h

index 2c987f5677636adc0bc286c74a47180defbdb820..67d8946db19343bd673caeeb839aa1a9f231b8fe 100644 (file)
@@ -129,23 +129,23 @@ static inline void switch_mm(struct mm_struct *prev,
                if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)))
                        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)
+
 #else
-#define get_mmu_context(mm)            do { } while (0)
-#define init_new_context(tsk,mm)       (0)
-#define destroy_context(mm)            do { } while (0)
+
 #define set_asid(asid)                 do { } while (0)
 #define get_asid()                     (0)
 #define cpu_asid(cpu, mm)              ({ (void)cpu; NO_CONTEXT; })
 #define switch_and_save_asid(asid)     (0)
 #define set_TTB(pgd)                   do { } while (0)
 #define get_TTB()                      (0)
-#define activate_context(mm,cpu)       do { } while (0)
-#define switch_mm(prev,next,tsk)       do { } while (0)
-#endif /* CONFIG_MMU */
 
-#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>
+
+#endif /* CONFIG_MMU */
 
 #if defined(CONFIG_CPU_SH3) || defined(CONFIG_CPU_SH4)
 /*