patch-2.1.101 linux/include/asm-ppc/spinlock.h

Next file: linux/include/asm-ppc/timex.h
Previous file: linux/include/asm-ppc/serial.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/include/asm-ppc/spinlock.h linux/include/asm-ppc/spinlock.h
@@ -64,8 +64,7 @@
 } spinlock_t;
 
 #define SPIN_LOCK_UNLOCKED	{ 0, 0, 0 }
-#define spin_lock_init(lp) \
-do { spinlock_t *p = (lp); p->owner_pc = p->owner_cpu = p->lock = 0; } while(0)
+#define spin_lock_init(lp) do { (lp)->lock = 0; } while(0)
 #define spin_unlock_wait(lp)	do { barrier(); } while((lp)->lock)
 
 extern void _spin_lock(spinlock_t *lock);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov