patch-2.4.4 linux/include/asm-s390/spinlock.h

Next file: linux/include/asm-s390/system.h
Previous file: linux/include/asm-s390/smp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/include/asm-s390/spinlock.h linux/include/asm-s390/spinlock.h
@@ -73,6 +73,8 @@
 
 #define RW_LOCK_UNLOCKED (rwlock_t) { 0, 0 }
 
+#define rwlock_init(x)	do { *(x) = RW_LOCK_UNLOCKED; } while(0)
+
 #define read_lock(rw)   \
         asm volatile("   l     2,%0\n"   \
                      "   j     1f\n"     \

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