lkml.org 
[lkml]   [2001]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectMICROPATCH: define rwlock_init() for ALPHA platforms
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/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.099 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site