Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e255baa authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Fix smp_callin() locking.



Interrupts must be disabled when taking the IPI lock.

Caught by lockdep.

Reported-by: default avatarMeelis Roos <mroos@linux.ee>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0882e8dd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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();