blob: d57d377967a4e1349e4a29a4862936bd1133c512 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--- linux-2.6.11.orig/include/asm-ppc/spinlock.h 2005-10-28 04:42:11.000000000 +0000
+++ linux-2.6.11/include/asm-ppc/spinlock.h 2005-10-28 04:44:55.000000000 +0000
@@ -19,7 +19,17 @@
} spinlock_t;
#ifndef __KERNEL__
-#define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 }
+
+typedef struct {
+ volatile signed int lock;
+#ifdef CONFIG_PREEMPT
+ unsigned int break_lock;
+#endif
+} rwlock_t;
+
+#define RW_LOCK_UNLOCKED (rwlock_t) { 0 }
+#define SPIN_LOCK_UNLOCKED (spinlock_t) { 0 }
+
#endif
#ifdef __KERNEL__
|