patch-2.1.36 linux/include/asm-alpha/semaphore.h
Next file: linux/include/asm-alpha/smp_lock.h
Previous file: linux/include/asm-alpha/processor.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-alpha/semaphore.h
-  Orig date: 
Wed Apr 16 14:15:00 1997
diff -u --recursive --new-file v2.1.35/linux/include/asm-alpha/semaphore.h linux/include/asm-alpha/semaphore.h
@@ -15,8 +15,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), ATOMIC_INIT(0), NULL })
+#define MUTEX_LOCKED ((struct semaphore) { ATOMIC_INIT(0), ATOMIC_INIT(0), NULL })
 
 extern void __down(struct semaphore * sem);
 extern int  __down_interruptible(struct semaphore * sem);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov