patch-2.3.43 linux/include/asm-i386/spinlock.h

Next file: linux/include/asm-ia64/a.out.h
Previous file: linux/include/asm-i386/softirq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/include/asm-i386/spinlock.h linux/include/asm-i386/spinlock.h
@@ -44,6 +44,7 @@
  */
 
 #define spin_unlock_wait(x)	do { barrier(); } while(((volatile spinlock_t *)(x))->lock)
+#define spin_is_locked(x)	((x)->lock != 0)
 
 #define spin_lock_string \
 	"\n1:\t" \

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)