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

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)