patch-2.4.4 linux/include/asm-s390x/spinlock.h
Next file: linux/include/asm-s390x/system.h
Previous file: linux/include/asm-s390x/smp.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Apr 11 19:02:29 2001
- Orig file:
v2.4.3/linux/include/asm-s390x/spinlock.h
- Orig date:
Tue Feb 13 14:13:44 2001
diff -u --recursive --new-file v2.4.3/linux/include/asm-s390x/spinlock.h linux/include/asm-s390x/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(" la 1,%0\n" \
" lg 2,0(1)\n" \
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)