spin_is_locked() broken for uniprocessor?

David Howells dhowells at redhat.com
Wed Aug 19 19:38:06 EST 2009


Thomas Gleixner <tglx at linutronix.de> wrote:

> > 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.

Surely it's not that simple?  Maybe spin_is_lock() should be undefined on UP.

David


More information about the Linuxppc-dev mailing list