aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/smpboot.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2007-05-02 13:27:10 -0400
committerAndi Kleen <andi@basil.nowhere.org>2007-05-02 13:27:10 -0400
commitd2cbcc49e2bfd6eaa44d7e4e5e5f171aaa5ec80d (patch)
treef7fb6a01cde18200aa6db57c3abffe69ae90b394 /arch/i386/kernel/smpboot.c
parentbf50467204b435421d8de33ad080fa46c6f3d50b (diff)
[PATCH] i386: clean up cpu_init()
We now have cpu_init() and secondary_cpu_init() doing nothing but calling _cpu_init() with the same arguments. Rename _cpu_init() to cpu_init() and use it as a replcement for secondary_cpu_init(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andi Kleen <ak@suse.de> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/i386/kernel/smpboot.c')
-rw-r--r--arch/i386/kernel/smpboot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/i386/kernel/smpboot.c b/arch/i386/kernel/smpboot.c
index a9447c3e86dd..954245f6d307 100644
--- a/arch/i386/kernel/smpboot.c
+++ b/arch/i386/kernel/smpboot.c
@@ -378,14 +378,14 @@ set_cpu_sibling_map(int cpu)
378static void __cpuinit start_secondary(void *unused) 378static void __cpuinit start_secondary(void *unused)
379{ 379{
380 /* 380 /*
381 * Don't put *anything* before secondary_cpu_init(), SMP 381 * Don't put *anything* before cpu_init(), SMP booting is too
382 * booting is too fragile that we want to limit the 382 * fragile that we want to limit the things done here to the
383 * things done here to the most necessary things. 383 * most necessary things.
384 */ 384 */
385#ifdef CONFIG_VMI 385#ifdef CONFIG_VMI
386 vmi_bringup(); 386 vmi_bringup();
387#endif 387#endif
388 secondary_cpu_init(); 388 cpu_init();
389 preempt_disable(); 389 preempt_disable();
390 smp_callin(); 390 smp_callin();
391 while (!cpu_isset(smp_processor_id(), smp_commenced_mask)) 391 while (!cpu_isset(smp_processor_id(), smp_commenced_mask))