dect
/
linux-2.6
Archived
13
0
Fork 0

sparc64: Fix smp_callin() locking.

Interrupts must be disabled when taking the IPI lock.

Caught by lockdep.

Reported-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2009-04-08 21:06:35 -07:00
parent 0882e8dd3a
commit 8e255baa44
1 changed files with 2 additions and 2 deletions

View File

@ -118,9 +118,9 @@ void __cpuinit smp_callin(void)
while (!cpu_isset(cpuid, smp_commenced_mask))
rmb();
ipi_call_lock();
ipi_call_lock_irq();
cpu_set(cpuid, cpu_online_map);
ipi_call_unlock();
ipi_call_unlock_irq();
/* idle thread is expected to have preempt disabled */
preempt_disable();