projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c1dff8
)
core: thread: return 0 from sem_down() if we didn't have to wait
author
H. Peter Anvin
<hpa@zytor.com>
Thu, 17 Sep 2009 00:47:02 +0000
(17:47 -0700)
committer
Eric W. Biederman
<ebiederm@xmission.com>
Tue, 12 Apr 2011 21:40:52 +0000
(14:40 -0700)
Return 0 from sem_down if we passed right through the assembly code.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/thread/sem_asm.S
patch
|
blob
|
history
diff --git
a/core/thread/sem_asm.S
b/core/thread/sem_asm.S
index
2b3014f
..
ce67471
100644
(file)
--- a/
core/thread/sem_asm.S
+++ b/
core/thread/sem_asm.S
@@
-3,6
+3,7
@@
sem_down:
decl (%eax)
js __sem_down_slow
+ xorl %eax, %eax
ret
.size sem_down, .-sem_down