patch-2.4.5 linux/include/asm-alpha/spinlock.h
Next file: linux/include/asm-alpha/system.h
Previous file: linux/include/asm-alpha/smp.h
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Thu May 24 15:20:18 2001
-  Orig file: 
v2.4.4/linux/include/asm-alpha/spinlock.h
-  Orig date: 
Sun Nov 12 19:27:11 2000
diff -u --recursive --new-file v2.4.4/linux/include/asm-alpha/spinlock.h linux/include/asm-alpha/spinlock.h
@@ -96,6 +96,8 @@
 
 #define RW_LOCK_UNLOCKED (rwlock_t) { 0, 0 }
 
+#define rwlock_init(x)	do { *(x) = RW_LOCK_UNLOCKED; } while(0)
+
 #if DEBUG_RWLOCK
 extern void write_lock(rwlock_t * lock);
 extern void read_lock(rwlock_t * lock);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)