git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-s390
/
semaphore.h
diff --git
a/include/asm-s390/semaphore.h
b/include/asm-s390/semaphore.h
index
32cdc69
..
702cf43
100644
(file)
--- a/
include/asm-s390/semaphore.h
+++ b/
include/asm-s390/semaphore.h
@@
-37,8
+37,7
@@
struct semaphore {
static inline void sema_init (struct semaphore *sem, int val)
{
static inline void sema_init (struct semaphore *sem, int val)
{
- atomic_set(&sem->count, val);
- init_waitqueue_head(&sem->wait);
+ *sem = (struct semaphore) __SEMAPHORE_INITIALIZER((*sem),val);
}
static inline void init_MUTEX (struct semaphore *sem)
}
static inline void init_MUTEX (struct semaphore *sem)