summaryrefslogtreecommitdiffstats
path: root/include/asm-xtensa/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-xtensa/semaphore.h')
-rw-r--r--include/asm-xtensa/semaphore.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-xtensa/semaphore.h b/include/asm-xtensa/semaphore.h
index 2a10e19..f10c348 100644
--- a/include/asm-xtensa/semaphore.h
+++ b/include/asm-xtensa/semaphore.h
@@ -38,6 +38,7 @@ struct semaphore {
static inline void sema_init (struct semaphore *sem, int val)
{
atomic_set(&sem->count, val);
+ sem->sleepers = 0;
init_waitqueue_head(&sem->wait);
}
OpenPOWER on IntegriCloud