spin_is_locked() broken for uniprocessor?
tglx at linutronix.de
Wed Aug 19 08:24:02 EST 2009
On Tue, 18 Aug 2009, Kumar Gala wrote:
> I just want to validate that what I'm seeing (for UP, non-debug features):
> spin_is_locked() is defined as:
> include/linux/spinlock.h:#define spin_is_locked(lock)
> for UP that should get us:
> include/linux/spinlock_up.h:#define __raw_spin_is_locked(lock) ((void)(lock),
> which implies to me that spin_is_locked() will always return false. Is this
> expected behavior.
That's wrong. spin_is_locked should always return true on UP.
More information about the Linuxppc-dev