diff options
Diffstat (limited to 'include/asm-m32r/mmu_context.h')
-rw-r--r-- | include/asm-m32r/mmu_context.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/asm-m32r/mmu_context.h b/include/asm-m32r/mmu_context.h index 542302eb6bcb..1f40d4a0acf1 100644 --- a/include/asm-m32r/mmu_context.h +++ b/include/asm-m32r/mmu_context.h | |||
@@ -1,9 +1,7 @@ | |||
1 | #ifndef _ASM_M32R_MMU_CONTEXT_H | 1 | #ifndef _ASM_M32R_MMU_CONTEXT_H |
2 | #define _ASM_M32R_MMU_CONTEXT_H | 2 | #define _ASM_M32R_MMU_CONTEXT_H |
3 | |||
4 | #ifdef __KERNEL__ | 3 | #ifdef __KERNEL__ |
5 | 4 | ||
6 | |||
7 | #include <asm/m32r.h> | 5 | #include <asm/m32r.h> |
8 | 6 | ||
9 | #define MMU_CONTEXT_ASID_MASK (0x000000FF) | 7 | #define MMU_CONTEXT_ASID_MASK (0x000000FF) |
@@ -11,7 +9,6 @@ | |||
11 | #define MMU_CONTEXT_FIRST_VERSION (0x00000100) | 9 | #define MMU_CONTEXT_FIRST_VERSION (0x00000100) |
12 | #define NO_CONTEXT (0x00000000) | 10 | #define NO_CONTEXT (0x00000000) |
13 | 11 | ||
14 | |||
15 | #ifndef __ASSEMBLY__ | 12 | #ifndef __ASSEMBLY__ |
16 | 13 | ||
17 | #include <asm/atomic.h> | 14 | #include <asm/atomic.h> |
@@ -147,7 +144,7 @@ static inline void switch_mm(struct mm_struct *prev, | |||
147 | #define activate_mm(prev, next) \ | 144 | #define activate_mm(prev, next) \ |
148 | switch_mm((prev), (next), NULL) | 145 | switch_mm((prev), (next), NULL) |
149 | 146 | ||
150 | #else | 147 | #else /* not CONFIG_MMU */ |
151 | #define get_mmu_context(mm) do { } while (0) | 148 | #define get_mmu_context(mm) do { } while (0) |
152 | #define init_new_context(tsk,mm) (0) | 149 | #define init_new_context(tsk,mm) (0) |
153 | #define destroy_context(mm) do { } while (0) | 150 | #define destroy_context(mm) do { } while (0) |
@@ -158,11 +155,9 @@ static inline void switch_mm(struct mm_struct *prev, | |||
158 | #define deactivate_mm(mm,tsk) do { } while (0) | 155 | #define deactivate_mm(mm,tsk) do { } while (0) |
159 | #define activate_mm(prev,next) do { } while (0) | 156 | #define activate_mm(prev,next) do { } while (0) |
160 | #define enter_lazy_tlb(mm,tsk) do { } while (0) | 157 | #define enter_lazy_tlb(mm,tsk) do { } while (0) |
161 | #endif /* CONFIG_MMU */ | 158 | #endif /* not CONFIG_MMU */ |
162 | |||
163 | 159 | ||
164 | #endif /* not __ASSEMBLY__ */ | 160 | #endif /* not __ASSEMBLY__ */ |
165 | 161 | ||
166 | #endif /* __KERNEL__ */ | 162 | #endif /* __KERNEL__ */ |
167 | |||
168 | #endif /* _ASM_M32R_MMU_CONTEXT_H */ | 163 | #endif /* _ASM_M32R_MMU_CONTEXT_H */ |