x86: integrate do_boot_cpu
This is a very large patch, because it depends on a lot
of auxiliary static functions. But they all have been modified
to the point that they're sufficiently close now. So they're just
merged in smpboot.c
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h
index 2ad2f4f..ef26911 100644
--- a/include/asm-x86/smp.h
+++ b/include/asm-x86/smp.h
@@ -9,6 +9,7 @@
extern int smp_num_siblings;
extern unsigned int num_processors;
+extern cpumask_t cpu_initialized;
extern u16 x86_cpu_to_apicid_init[];
extern u16 x86_bios_cpu_apicid_init[];
@@ -34,6 +35,8 @@
unsigned short ss;
} stack_start;
+extern unsigned long init_rsp;
+extern unsigned long initial_code;
struct smp_ops {
void (*smp_prepare_boot_cpu)(void);