core: thread: return 0 from sem_down() if we didn't have to wait
authorH. Peter Anvin <hpa@zytor.com>
Thu, 17 Sep 2009 00:47:02 +0000 (17:47 -0700)
committerEric 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

index 2b3014f..ce67471 100644 (file)
@@ -3,6 +3,7 @@
 sem_down:
        decl    (%eax)
        js      __sem_down_slow
+       xorl    %eax, %eax
        ret
        .size   sem_down, .-sem_down