diff options
author | Alex Nixon <alex.nixon@citrix.com> | 2008-09-03 13:30:23 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 15:44:08 (GMT) |
commit | 913da64b54b2b3bb212a59aba2e6f2b8294ca1fa (patch) | |
tree | c7e715a2df32c8360bc568e274e4868640243e1b /arch/x86/kernel/tlb_32.c | |
parent | 5ab6d815dc23117cd9c5895cb9592824de3d4a68 (diff) | |
download | linux-fsl-qoriq-913da64b54b2b3bb212a59aba2e6f2b8294ca1fa.tar.xz |
x86: build fix for !CONFIG_SMP
Move reset_lazy_tlbstate into tlb_32.c, and define noop versions of
play_dead() in process_{32,64}.c when !CONFIG_SMP.
Signed-off-by: Alex Nixon <alex.nixon@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/tlb_32.c')
-rw-r--r-- | arch/x86/kernel/tlb_32.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/tlb_32.c b/arch/x86/kernel/tlb_32.c index fec1ece..e00534b 100644 --- a/arch/x86/kernel/tlb_32.c +++ b/arch/x86/kernel/tlb_32.c @@ -241,3 +241,11 @@ void flush_tlb_all(void) on_each_cpu(do_flush_tlb_all, NULL, 1); } +void reset_lazy_tlbstate(void) +{ + int cpu = raw_smp_processor_id(); + + per_cpu(cpu_tlbstate, cpu).state = 0; + per_cpu(cpu_tlbstate, cpu).active_mm = &init_mm; +} + |