patch-2.1.36 linux/include/asm-i386/semaphore.h
Next file: linux/include/asm-i386/smp.h
Previous file: linux/include/asm-i386/pgtable.h
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
Thu Apr 17 13:20:48 1997
-  Orig file: 
v2.1.35/linux/include/asm-i386/semaphore.h
-  Orig date: 
Mon Apr 14 16:28:19 1997
diff -u --recursive --new-file v2.1.35/linux/include/asm-i386/semaphore.h linux/include/asm-i386/semaphore.h
@@ -28,8 +28,8 @@
 	struct wait_queue * wait;
 };
 
-#define MUTEX ((struct semaphore) { { 1 }, 0, NULL })
-#define MUTEX_LOCKED ((struct semaphore) { { 0 }, 0, NULL })
+#define MUTEX ((struct semaphore) { ATOMIC_INIT(1), 0, NULL })
+#define MUTEX_LOCKED ((struct semaphore) { ATOMIC_INIT(0), 0, NULL })
 
 asmlinkage void __down_failed(void /* special register calling convention */);
 asmlinkage int  __down_failed_interruptible(void  /* params in registers */);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov