* MICROPATCH: define rwlock_init() for ALPHA platforms
@ 2001-05-03 9:38 Reto Baettig
0 siblings, 0 replies; only message in thread
From: Reto Baettig @ 2001-05-03 9:38 UTC (permalink / raw)
To: linux-kernel
Hi,
Here's a small patch which defines rwlock_init() for alphas. It's
defined for all the other platforms.
Reto
--- include/asm-alpha/spinlock.h.orig Thu May 3 11:00:08 2001
+++ include/asm-alpha/spinlock.h Thu May 3 11:01:46 2001
@@ -95,6 +95,7 @@
} /*__attribute__((aligned(32)))*/ rwlock_t;
#define RW_LOCK_UNLOCKED (rwlock_t) { 0, 0 }
+#define rwlock_init(lp) do { *(lp) = RW_LOCK_UNLOCKED; } while(0)
#if DEBUG_RWLOCK
extern void write_lock(rwlock_t * lock);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-05-03 9:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-03 9:38 MICROPATCH: define rwlock_init() for ALPHA platforms Reto Baettig
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.