aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/process_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/process_32.c')
-rw-r--r--arch/x86/kernel/process_32.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
index d55eb49584b1..633cf06578fa 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
@@ -72,38 +72,6 @@ unsigned long thread_saved_pc(struct task_struct *tsk)
72 return ((unsigned long *)tsk->thread.sp)[3]; 72 return ((unsigned long *)tsk->thread.sp)[3];
73} 73}
74 74
75#ifdef CONFIG_HOTPLUG_CPU
76#include <asm/nmi.h>
77
78/* We don't actually take CPU down, just spin without interrupts. */
79void native_play_dead(void)
80{
81 int cpu = raw_smp_processor_id();
82
83 idle_task_exit();
84
85 reset_lazy_tlbstate();
86
87 irq_ctx_exit(cpu);
88
89 mb();
90 /* Ack it */
91 __get_cpu_var(cpu_state) = CPU_DEAD;
92
93 /*
94 * With physical CPU hotplug, we should halt the cpu
95 */
96 local_irq_disable();
97 /* mask all interrupts, flush any and all caches, and halt */
98 wbinvd_halt();
99}
100#else
101void native_play_dead(void)
102{
103 BUG();
104}
105#endif /* CONFIG_HOTPLUG_CPU */
106
107/* 75/*
108 * The idle thread. There's no useful work to be 76 * The idle thread. There's no useful work to be
109 * done, so just try to conserve power and have a 77 * done, so just try to conserve power and have a