patch-2.1.79 linux/include/asm-i386/spinlock.h

Next file: linux/include/asm-i386/uaccess.h
Previous file: linux/include/asm-i386/processor.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/include/asm-i386/spinlock.h linux/include/asm-i386/spinlock.h
@@ -64,12 +64,11 @@
 
 typedef struct {
 	volatile unsigned int lock;
-	unsigned long previous;
 } spinlock_t;
 
-#define SPIN_LOCK_UNLOCKED { 0, 0 }
+#define SPIN_LOCK_UNLOCKED { 0 }
 
-#define spin_lock_init(x)	do { (x)->lock = 0; (x)->previous = 0; } while(0)
+#define spin_lock_init(x)	do { (x)->lock = 0; } while(0)
 #define spin_unlock_wait(x)	do { barrier(); } while(((volatile spinlock_t *)(x))->lock)
 
 typedef struct { unsigned long a[100]; } __dummy_lock_t;

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