MICROPATCH: define rwlock_init() for ALPHA platforms

From: Reto Baettig (baettig@scs.ch)
Date: Thu May 03 2001 - 04:38:03 EST


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);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 07 2001 - 21:00:16 EST