patch-2.4.0-test3 linux/include/asm-i386/spinlock.h
Next file: linux/include/asm-i386/timex.h
Previous file: linux/include/asm-i386/socket.h
Back to the patch index
Back to the overall index
- Lines: 17
- Date:
Mon Jul 10 13:21:49 2000
- Orig file:
v2.4.0-test2/linux/include/asm-i386/spinlock.h
- Orig date:
Mon Jun 19 16:32:01 2000
diff -u --recursive --new-file v2.4.0-test2/linux/include/asm-i386/spinlock.h linux/include/asm-i386/spinlock.h
@@ -36,6 +36,7 @@
#define SPIN_LOCK_UNLOCKED (spinlock_t) { 1 SPINLOCK_MAGIC_INIT }
#define spin_lock_init(x) do { *(x) = SPIN_LOCK_UNLOCKED; } while(0)
+
/*
* Simple spin lock operations. There are two variants, one clears IRQ's
* on the local processor, one does not.
@@ -128,6 +129,8 @@
#endif
#define RW_LOCK_UNLOCKED (rwlock_t) { RW_LOCK_BIAS RWLOCK_MAGIC_INIT }
+
+#define rwlock_init(x) do { *(x) = RW_LOCK_UNLOCKED; } while(0)
/*
* On x86, we implement read-write locks as a 32-bit counter
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)