Commit 5733f627 authored by Glauber de Oliveira Costa's avatar Glauber de Oliveira Costa Committed by Ingo Molnar

x86: move state update out of ipi_lock

it does not need to be inside lock. Do the way i386 does.
Signed-off-by: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 8f15b82e
...@@ -233,10 +233,10 @@ void __cpuinit start_secondary(void) ...@@ -233,10 +233,10 @@ void __cpuinit start_secondary(void)
*/ */
spin_unlock(&vector_lock); spin_unlock(&vector_lock);
cpu_set(smp_processor_id(), cpu_online_map); cpu_set(smp_processor_id(), cpu_online_map);
per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE;
unlock_ipi_call_lock(); unlock_ipi_call_lock();
per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE;
setup_secondary_clock(); setup_secondary_clock();
cpu_idle(); cpu_idle();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment