diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-03-19 13:25:09 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:00 -0400 |
commit | 5733f627498121870b081b7ab73ffba01348f8cd (patch) | |
tree | d91846e55fe2d475795739185a5bd4602ca47f42 | |
parent | 8f15b82e22779fd44baeb78515c9c154b407eff0 (diff) |
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>
-rw-r--r-- | arch/x86/kernel/smpboot_64.c | 4 |
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) | |||
233 | */ | 233 | */ |
234 | spin_unlock(&vector_lock); | 234 | spin_unlock(&vector_lock); |
235 | cpu_set(smp_processor_id(), cpu_online_map); | 235 | cpu_set(smp_processor_id(), cpu_online_map); |
236 | per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; | ||
237 | |||
238 | unlock_ipi_call_lock(); | 236 | unlock_ipi_call_lock(); |
239 | 237 | ||
238 | per_cpu(cpu_state, smp_processor_id()) = CPU_ONLINE; | ||
239 | |||
240 | setup_secondary_clock(); | 240 | setup_secondary_clock(); |
241 | 241 | ||
242 | cpu_idle(); | 242 | cpu_idle(); |