提交 e9145016 编写于 作者: A Alan D. Brunelle 提交者: Tony Luck

[IA64] Fix unlock ordering in smp_callin

One should normally unlock in the reverse order of the lock calls,
and in this case there certainly is no reason not to.
Signed-off-by: NAlan D. Brunelle <alan.brunelle@hp.com>
Signed-off-by: NTony Luck <tony.luck@intel.com>
上级 e4b05d40
...@@ -400,9 +400,9 @@ smp_callin (void) ...@@ -400,9 +400,9 @@ smp_callin (void)
/* Setup the per cpu irq handling data structures */ /* Setup the per cpu irq handling data structures */
__setup_vector_irq(cpuid); __setup_vector_irq(cpuid);
cpu_set(cpuid, cpu_online_map); cpu_set(cpuid, cpu_online_map);
unlock_ipi_calllock();
per_cpu(cpu_state, cpuid) = CPU_ONLINE; per_cpu(cpu_state, cpuid) = CPU_ONLINE;
spin_unlock(&vector_lock); spin_unlock(&vector_lock);
unlock_ipi_calllock();
smp_setup_percpu_timer(); smp_setup_percpu_timer();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册