[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Confusion regarding spin_lock_irqsave and spin_unlock_irqrestore.
On Wed, 2006-07-05 at 19:38 +0530, Ranjan Sinha wrote:
> Hi,
>
> A very newbie question on locking.
>
> LDD3 talks about spin_lock_irqsave and spin_unlock_restore and
> mentions that the two _must_ be called from the same function or the
> code might break on some architecture. I searched for this on google
> and found that one of the platform on which it can break is sparc.
this is no longer the case; it used to be like that in older kernels,
but that got fixed for 2.6 kernels.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/