diff options
Diffstat (limited to 'arch/x86/include/asm/tlbflush.h')
-rw-r--r-- | arch/x86/include/asm/tlbflush.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h index c0e108e08079..36a1a2ab87d2 100644 --- a/arch/x86/include/asm/tlbflush.h +++ b/arch/x86/include/asm/tlbflush.h | |||
@@ -62,11 +62,7 @@ static inline void __flush_tlb_one(unsigned long addr) | |||
62 | __flush_tlb(); | 62 | __flush_tlb(); |
63 | } | 63 | } |
64 | 64 | ||
65 | #ifdef CONFIG_X86_32 | 65 | #define TLB_FLUSH_ALL -1UL |
66 | # define TLB_FLUSH_ALL 0xffffffff | ||
67 | #else | ||
68 | # define TLB_FLUSH_ALL -1ULL | ||
69 | #endif | ||
70 | 66 | ||
71 | /* | 67 | /* |
72 | * TLB flushing: | 68 | * TLB flushing: |
@@ -156,8 +152,8 @@ DECLARE_PER_CPU_SHARED_ALIGNED(struct tlb_state, cpu_tlbstate); | |||
156 | 152 | ||
157 | static inline void reset_lazy_tlbstate(void) | 153 | static inline void reset_lazy_tlbstate(void) |
158 | { | 154 | { |
159 | percpu_write(cpu_tlbstate.state, 0); | 155 | this_cpu_write(cpu_tlbstate.state, 0); |
160 | percpu_write(cpu_tlbstate.active_mm, &init_mm); | 156 | this_cpu_write(cpu_tlbstate.active_mm, &init_mm); |
161 | } | 157 | } |
162 | 158 | ||
163 | #endif /* SMP */ | 159 | #endif /* SMP */ |