x86: move state update out of ipi_lock
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Wed, 19 Mar 2008 17:25:09 +0000 (14:25 -0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:00 +0000 (17:41 +0200)
it does not need to be inside lock. Do the way i386 does.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/smpboot_64.c

index c213345ca2f592d3957cbb94defe5cb8ddeb9cfa..cfcfd2c2062b152e2941670d34e4824369d7788a 100644 (file)
@@ -233,10 +233,10 @@ void __cpuinit start_secondary(void)
         */
        spin_unlock(&vector_lock);
        cpu_set(smp_processor_id(), cpu_online_map);
-       per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE;
-
        unlock_ipi_call_lock();
 
+       per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE;
+
        setup_secondary_clock();
 
        cpu_idle();