diff options
Diffstat (limited to 'include/asm-arm/tlbflush.h')
-rw-r--r-- | include/asm-arm/tlbflush.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asm-arm/tlbflush.h b/include/asm-arm/tlbflush.h index 08c6991dc9c9..71be4fded7e2 100644 --- a/include/asm-arm/tlbflush.h +++ b/include/asm-arm/tlbflush.h | |||
@@ -138,12 +138,27 @@ | |||
138 | # define v6wbi_always_flags (-1UL) | 138 | # define v6wbi_always_flags (-1UL) |
139 | #endif | 139 | #endif |
140 | 140 | ||
141 | #ifdef CONFIG_CPU_TLB_V7 | ||
142 | # define v7wbi_possible_flags v6wbi_tlb_flags | ||
143 | # define v7wbi_always_flags v6wbi_tlb_flags | ||
144 | # ifdef _TLB | ||
145 | # define MULTI_TLB 1 | ||
146 | # else | ||
147 | # define _TLB v7wbi | ||
148 | # endif | ||
149 | #else | ||
150 | # define v7wbi_possible_flags 0 | ||
151 | # define v7wbi_always_flags (-1UL) | ||
152 | #endif | ||
153 | |||
141 | #ifndef _TLB | 154 | #ifndef _TLB |
142 | #error Unknown TLB model | 155 | #error Unknown TLB model |
143 | #endif | 156 | #endif |
144 | 157 | ||
145 | #ifndef __ASSEMBLY__ | 158 | #ifndef __ASSEMBLY__ |
146 | 159 | ||
160 | #include <linux/sched.h> | ||
161 | |||
147 | struct cpu_tlb_fns { | 162 | struct cpu_tlb_fns { |
148 | void (*flush_user_range)(unsigned long, unsigned long, struct vm_area_struct *); | 163 | void (*flush_user_range)(unsigned long, unsigned long, struct vm_area_struct *); |
149 | void (*flush_kern_range)(unsigned long, unsigned long); | 164 | void (*flush_kern_range)(unsigned long, unsigned long); |