X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-xtensa%2Fsemaphore.h;h=f10c3487cd4c5cb26b18d2e92df574395c349594;hb=994efacdf9a087b52f71e620b58dfa526b0cf928;hp=2a10e193b92972504e12c68199cc5691cd084a04;hpb=c1d962035d49565d8c7a2d97519012ccb861778a;p=powerpc.git diff --git a/include/asm-xtensa/semaphore.h b/include/asm-xtensa/semaphore.h index 2a10e193b9..f10c3487cd 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); }