patch-2.3.16 linux/include/asm-arm/semaphore.h
Next file: linux/include/asm-arm/system.h
Previous file: linux/include/asm-arm/procinfo.h
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Aug 30 18:15:21 1999
- Orig file:
v2.3.15/linux/include/asm-arm/semaphore.h
- Orig date:
Thu Jun 17 01:11:35 1999
diff -u --recursive --new-file v2.3.15/linux/include/asm-arm/semaphore.h linux/include/asm-arm/semaphore.h
@@ -6,11 +6,12 @@
#include <linux/linkage.h>
#include <asm/atomic.h>
+#include <asm/spinlock.h>
#include <linux/wait.h>
struct semaphore {
atomic_t count;
- int waking;
+ int sleepers;
wait_queue_head_t wait;
};
@@ -30,7 +31,7 @@
#define sema_init(sem, val) \
do { \
atomic_set(&((sem)->count), (val)); \
- (sem)->waking = 0; \
+ (sem)->sleepers = 0; \
init_waitqueue_head(&(sem)->wait); \
} while (0)
@@ -46,7 +47,7 @@
asmlinkage void __down_failed (void /* special register calling convention */);
asmlinkage int __down_interruptible_failed (void /* special register calling convention */);
-asmlinkage int __down_failed_trylock(void /* params in registers */);
+asmlinkage int __down_trylock_failed(void /* params in registers */);
asmlinkage void __up_wakeup (void /* special register calling convention */);
extern void __down(struct semaphore * sem);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)