summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2004-08-02 20:03:59 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2004-08-02 20:03:59 +0000
commitd3637a5f5d5815efb19d46b95ed22531960be943 (patch)
tree1b0367b1bd7934c7d5321695fae3b8e416280445 /sys/arch
parentd8b873fc52e529230648db830ff883d36312a314 (diff)
Remove a completly unnecessary compare that sneaked in while
I was debugging some completly other problem in this function. cmpxchgq already does an equivalent compare. Discussed on icb a few days ago.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/amd64/amd64/mutex.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/mutex.S b/sys/arch/amd64/amd64/mutex.S
index a4018c03333..a833f83c4e0 100644
--- a/sys/arch/amd64/amd64/mutex.S
+++ b/sys/arch/amd64/amd64/mutex.S
@@ -58,7 +58,6 @@ ENTRY(mtx_enter)
lock
#endif
cmpxchgq %rcx, MTX_OWNER(%rdi) # test_and_set(mtx->mtx_owner)
- cmpq $0, %rax
jne 3f
movl %edx, MTX_OLDIPL(%rdi)
ret