aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kernel/smpboot_64.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c
index c3e770b0094b..c6c993f4c415 100644
--- a/arch/x86/kernel/smpboot_64.c
+++ b/arch/x86/kernel/smpboot_64.c
@@ -60,6 +60,8 @@
60#include <asm/hw_irq.h> 60#include <asm/hw_irq.h>
61#include <asm/numa.h> 61#include <asm/numa.h>
62 62
63#include <mach_wakecpu.h>
64
63/* Set when the idlers are all forked */ 65/* Set when the idlers are all forked */
64int smp_threads_ready; 66int smp_threads_ready;
65 67
@@ -85,13 +87,6 @@ struct task_struct *idle_thread_array[NR_CPUS] __cpuinitdata ;
85#define set_idle_for_cpu(x,p) (idle_thread_array[(x)] = (p)) 87#define set_idle_for_cpu(x,p) (idle_thread_array[(x)] = (p))
86#endif 88#endif
87 89
88static inline void wait_for_init_deassert(atomic_t *deassert)
89{
90 while (!atomic_read(deassert))
91 cpu_relax();
92 return;
93}
94
95static atomic_t init_deasserted __cpuinitdata; 90static atomic_t init_deasserted __cpuinitdata;
96 91
97/* 92/*
@@ -247,7 +242,7 @@ extern volatile unsigned long init_rsp;
247extern void (*initial_code)(void); 242extern void (*initial_code)(void);
248 243
249#ifdef APIC_DEBUG 244#ifdef APIC_DEBUG
250static void inquire_remote_apic(int apicid) 245static void __inquire_remote_apic(int apicid)
251{ 246{
252 unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 }; 247 unsigned i, regs[] = { APIC_ID >> 4, APIC_LVR >> 4, APIC_SPIV >> 4 };
253 char *names[] = { "ID", "VERSION", "SPIV" }; 248 char *names[] = { "ID", "VERSION", "SPIV" };