summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot_64.c
diff options
context:
space:
mode:
authorGlauber de Oliveira Costa2008-03-19 18:25:09 +0100
committerIngo Molnar2008-04-17 17:41:00 +0200
commit5733f627498121870b081b7ab73ffba01348f8cd (patch)
treed91846e55fe2d475795739185a5bd4602ca47f42 /arch/x86/kernel/smpboot_64.c
parentx86: move setup_secondary_clock a little bit down in the function (diff)
downloadkernel-qcow2-linux-5733f627498121870b081b7ab73ffba01348f8cd.tar.gz
kernel-qcow2-linux-5733f627498121870b081b7ab73ffba01348f8cd.tar.xz
kernel-qcow2-linux-5733f627498121870b081b7ab73ffba01348f8cd.zip
x86: move state update out of ipi_lock
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>
Diffstat (limited to 'arch/x86/kernel/smpboot_64.c')
-rw-r--r--arch/x86/kernel/smpboot_64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/smpboot_64.c b/arch/x86/kernel/smpboot_64.c
index c213345ca2f5..cfcfd2c2062b 100644
--- a/arch/x86/kernel/smpboot_64.c
+++ b/arch/x86/kernel/smpboot_64.c
@@ -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();