spin_lock_irqsave and multi-core

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Apr 1 13:39:05 EST 2010


On Thu, 2010-04-01 at 09:59 +0800, gshan wrote:
> On multi-core system, spin_lock_irqsave() can stop all CPU cores 
> receiving interrupts?

No.

> If the answer is no, what we can do to disable external interrupt for 
> all CPU cores?

You don't :-)

Really, you generally don't. Why would you want to do that ?

Cheers,
Ben.




More information about the Linuxppc-dev mailing list