projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23f88fe
)
[PATCH] xtensa: struct semaphore.sleepers initialization
author
Arthur Othieno
<a.othieno@bluewin.ch>
Mon, 7 Nov 2005 08:59:01 +0000
(
00:59
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 7 Nov 2005 15:53:32 +0000
(07:53 -0800)
No one may sleep on us until we've been down()'d. So on allocation,
initialize `sleepers' to 0, just like everyone else does.
Signed-off-by: Arthur Othieno <a.othieno@bluewin.ch>
Acked-by: Christian Zankel <chris@zankel.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-xtensa/semaphore.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-xtensa/semaphore.h
b/include/asm-xtensa/semaphore.h
index 2a10e193b92972504e12c68199cc5691cd084a04..f10c3487cd4c5cb26b18d2e92df574395c349594 100644
(file)
--- 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);
}