fix regression disabling use of pause instruction for x86 a_spin
authorRich Felker <dalias@aerifal.cx>
Wed, 30 Mar 2016 01:22:52 +0000 (21:22 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 30 Mar 2016 01:27:28 +0000 (21:27 -0400)
commit5c3412d22555d03a1c00578ba8faaa8dc9206420
treebb92d6cc16fd526d6f31dff0994636c0b3a07f34
parent6d1a3dfeaf2caac4033a3c65822fb4e7e14866c7
fix regression disabling use of pause instruction for x86 a_spin

commits e24984efd5c6ac5ea8e6cb6cd914fa8435d458bc and
16b55298dc4b6a54d287d7494e04542667ef8861 inadvertently disabled the
a_spin implementations for i386, x86_64, and x32 by defining a macro
named a_pause instead of a_spin. this should not have caused any
functional regression, but it inhibited cpu relaxation while spinning
for locks.

bug reported by George Kulakowski.
arch/i386/atomic_arch.h
arch/x32/atomic_arch.h
arch/x86_64/atomic_arch.h