Skip to content

Commit

Permalink
x86: move state update out of ipi_lock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Apr 17, 2008
1 parent 8f15b82 commit 5733f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/smpboot_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5733f62

Please sign in to comment.