linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* spin_is_locked() broken for uniprocessor?
@ 2009-08-18 22:09 Kumar Gala
  2009-08-18 22:24 ` Thomas Gleixner
  2009-08-19  9:38 ` David Howells
  0 siblings, 2 replies; 8+ messages in thread
From: Kumar Gala @ 2009-08-18 22:09 UTC (permalink / raw)
  To: Linux-Kernel List; +Cc: Thomas Gleixner, linuxppc-dev list

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)    
__raw_spin_is_locked(&(lock)->raw_lock)

for UP that should get us:

include/linux/spinlock_up.h:#define __raw_spin_is_locked(lock)  ((void) 
(lock), 0)

which implies to me that spin_is_locked() will always return false.   
Is this expected behavior.

- k

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-08-27  9:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-18 22:09 spin_is_locked() broken for uniprocessor? Kumar Gala
2009-08-18 22:24 ` Thomas Gleixner
2009-08-19  9:38 ` David Howells
2009-08-19  9:41   ` Peter Zijlstra
2009-08-27  9:32     ` Benjamin Herrenschmidt
2009-08-19 10:53   ` Alan Cox
2009-08-19 11:16     ` Leon Woestenberg
2009-08-19 11:23       ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).