linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / include / asm-s390 / semaphore.h
index 32cdc69..702cf43 100644 (file)
@@ -37,8 +37,7 @@ struct semaphore {
 
 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)