patch-2.1.36 linux/include/asm-ppc/semaphore.h
Next file: linux/include/asm-sparc/atomic.h
Previous file: linux/include/asm-ppc/atomic.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Thu Apr 17 13:20:51 1997
- Orig file:
v2.1.35/linux/include/asm-ppc/semaphore.h
- Orig date:
Mon Apr 14 16:28:19 1997
diff -u --recursive --new-file v2.1.35/linux/include/asm-ppc/semaphore.h linux/include/asm-ppc/semaphore.h
@@ -9,8 +9,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 void __up(struct semaphore * sem);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov