diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-03-19 13:25:31 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:01 -0400 |
commit | 8d77010f8c93b4d41ffd71c7ad9d07fc1668cd5a (patch) | |
tree | ae4fcd9e0350b62a58db233ddd22982b0bdb87be | |
parent | ee09efc3e4173632471d2dff6ca42e21930c94fe (diff) |
x86: include mach_wakecpu.h in smpboot_64
Do it and also fix conflicts, which automatically makes
x86_64 look closer to i386
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/smpboot_64.c | 11 |
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 */ |
64 | int smp_threads_ready; | 66 | int 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 | ||
88 | static inline void wait_for_init_deassert(atomic_t *deassert) | ||
89 | { | ||
90 | while (!atomic_read(deassert)) | ||
91 | cpu_relax(); | ||
92 | return; | ||
93 | } | ||
94 | |||
95 | static atomic_t init_deasserted __cpuinitdata; | 90 | static atomic_t init_deasserted __cpuinitdata; |
96 | 91 | ||
97 | /* | 92 | /* |
@@ -247,7 +242,7 @@ extern volatile unsigned long init_rsp; | |||
247 | extern void (*initial_code)(void); | 242 | extern void (*initial_code)(void); |
248 | 243 | ||
249 | #ifdef APIC_DEBUG | 244 | #ifdef APIC_DEBUG |
250 | static void inquire_remote_apic(int apicid) | 245 | static 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" }; |