MICROPATCH: define rwlock_init() for ALPHA platforms

Reto Baettig (baettig@scs.ch)
Thu, 03 May 2001 11:38:03 +0200


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/