x86: don't reload after cmpxchg in unsafe_atomic_op2() loop
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 26 Mar 2020 21:34:40 +0000 (17:34 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 28 Mar 2020 03:58:54 +0000 (23:58 -0400)
commit8aef36dacb3a932cb77da8bb7eb21a154babd0b8
treedc536db1c2a979982e0f0020b114d55b3a1f4152
parent0ec33c0171a138bedc1a39f4fd70455416dca926
x86: don't reload after cmpxchg in unsafe_atomic_op2() loop

lock cmpxchg leaves the current value in eax; no need to reload it.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/include/asm/futex.h