[openib-general] [PATCH RFC 07/21] ofed_1_2 Add DEFINE_RWLOCK to sles9sp3

Steve Wise swise at opengridcomputing.com
Mon Jan 15 13:19:32 PST 2007


Add DEFINE_RWLOCK to sles9sp3

Signed-off-by: Steve Wise <swise at opengridcomputing.com>
---

 .../2.6.5_sles9_sp3/include/linux/spinlock.h       |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/spinlock.h b/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/spinlock.h
index 4644d50..449e0eb 100644
--- a/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/spinlock.h
+++ b/kernel_addons/backport/2.6.5_sles9_sp3/include/linux/spinlock.h
@@ -3,6 +3,7 @@ #define BACKPORT_LINUX_SPINLOCK_H
 
 #include_next <linux/spinlock.h>
 #define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
+#define DEFINE_RWLOCK(x)	rwlock_t x = RW_LOCK_UNLOCKED
 
 #define spin_trylock_irqsave(lock, flags) \
 ({ \




More information about the general mailing list