diff options
author | Brian Gerst <brgerst@gmail.com> | 2009-01-18 10:38:57 -0500 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-01-18 10:38:57 -0500 |
commit | 9eb912d1aa6b8106e06a73ea6702ec3dab0d6a1a (patch) | |
tree | ed563ea82e5190894806c62d87a769400b08375a /arch/x86/kernel/tlb_32.c | |
parent | 1b437c8c73a36daa471dd54a63c426d72af5723d (diff) |
x86-64: Move TLB state from PDA to per-cpu and consolidate with 32-bit.
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'arch/x86/kernel/tlb_32.c')
-rw-r--r-- | arch/x86/kernel/tlb_32.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/arch/x86/kernel/tlb_32.c b/arch/x86/kernel/tlb_32.c index e65449d0f7d9..abf0808d6fc4 100644 --- a/arch/x86/kernel/tlb_32.c +++ b/arch/x86/kernel/tlb_32.c | |||
@@ -4,8 +4,8 @@ | |||
4 | 4 | ||
5 | #include <asm/tlbflush.h> | 5 | #include <asm/tlbflush.h> |
6 | 6 | ||
7 | DEFINE_PER_CPU(struct tlb_state, cpu_tlbstate) | 7 | DEFINE_PER_CPU_SHARED_ALIGNED(struct tlb_state, cpu_tlbstate) |
8 | ____cacheline_aligned = { &init_mm, 0, }; | 8 | = { &init_mm, 0, }; |
9 | 9 | ||
10 | /* must come after the send_IPI functions above for inlining */ | 10 | /* must come after the send_IPI functions above for inlining */ |
11 | #include <mach_ipi.h> | 11 | #include <mach_ipi.h> |
@@ -231,14 +231,6 @@ void flush_tlb_all(void) | |||
231 | on_each_cpu(do_flush_tlb_all, NULL, 1); | 231 | on_each_cpu(do_flush_tlb_all, NULL, 1); |
232 | } | 232 | } |
233 | 233 | ||
234 | void reset_lazy_tlbstate(void) | ||
235 | { | ||
236 | int cpu = raw_smp_processor_id(); | ||
237 | |||
238 | per_cpu(cpu_tlbstate, cpu).state = 0; | ||
239 | per_cpu(cpu_tlbstate, cpu).active_mm = &init_mm; | ||
240 | } | ||
241 | |||
242 | static int init_flush_cpumask(void) | 234 | static int init_flush_cpumask(void) |
243 | { | 235 | { |
244 | alloc_cpumask_var(&flush_cpumask, GFP_KERNEL); | 236 | alloc_cpumask_var(&flush_cpumask, GFP_KERNEL); |