From c7fc24dc4420057f103afe8fc64524ebc25c5d37 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 25 Aug 1998 09:12:35 +0000 Subject: o Merge with Linux 2.1.116. o New Newport console code. o New G364 console code. --- include/asm-ppc/spinlock.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/asm-ppc/spinlock.h') diff --git a/include/asm-ppc/spinlock.h b/include/asm-ppc/spinlock.h index 00f1de281..55e6bd16f 100644 --- a/include/asm-ppc/spinlock.h +++ b/include/asm-ppc/spinlock.h @@ -64,8 +64,7 @@ typedef struct { } 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); -- cgit v1.2.3