[parisc-linux-cvs] Fix spin_lock_wait

Matthew Wilcox willy@ldl.fc.hp.com
Thu, 15 Feb 2001 22:43:02 -0700


This is all it takes to get to fix networking and get to starting
init on an SMP J5k.

Index: include/asm-parisc/spinlock.h
===================================================================
RCS file: /home/cvs/parisc/linux/include/asm-parisc/spinlock.h,v
retrieving revision 1.9
diff -u -p -r1.9 spinlock.h
--- spinlock.h	2001/01/31 08:34:18	1.9
+++ spinlock.h	2001/02/16 05:35:37
@@ -14,7 +14,7 @@
 
 #define spin_is_locked(x) ((x)->lock == 0)
 
-#define spin_unlock_wait(x)	do { barrier(); } while(((volatile spinlock_t *)(x))->lock == 1)
+#define spin_unlock_wait(x)	do { barrier(); } while(((volatile spinlock_t *)(x))->lock == 0)
 
 #if 1
 #define spin_lock(x) do { \