patch-2.1.101 linux/include/asm-mips/semaphore.h
Next file: linux/include/asm-mips/sgi.h
Previous file: linux/include/asm-mips/r4kcache.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Fri May 8 00:13:26 1998
- Orig file:
v2.1.100/linux/include/asm-mips/semaphore.h
- Orig date:
Thu Jun 26 12:33:40 1997
diff -u --recursive --new-file v2.1.100/linux/include/asm-mips/semaphore.h linux/include/asm-mips/semaphore.h
@@ -10,7 +10,9 @@
#ifndef __ASM_MIPS_SEMAPHORE_H
#define __ASM_MIPS_SEMAPHORE_H
+#include <asm/system.h>
#include <asm/atomic.h>
+#include <asm/spinlock.h>
struct semaphore {
atomic_t count;
@@ -24,6 +26,8 @@
extern void __down(struct semaphore * sem);
extern int __down_interruptible(struct semaphore * sem);
extern void __up(struct semaphore * sem);
+
+extern spinlock_t semaphore_wake_lock;
#define sema_init(sem, val) atomic_set(&((sem)->count), val)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov