NPTL/ARC: implement __arch_exchange_32_acq using native EX
commit0ef881ce9568e1c2e98351fdc067bebbc8c4696a
authorVineet Gupta <Vineet.Gupta1@synopsys.com>
Tue, 8 Nov 2016 00:31:38 +0000 (7 16:31 -0800)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Sun, 13 Nov 2016 12:44:35 +0000 (13 13:44 +0100)
tree40d30d60a00e117852f5cf39afdf470323f9fe1e
parentf6cfc2129c6902410619f6cba56022af2977b6a3
NPTL/ARC: implement __arch_exchange_32_acq using native EX

ARC EX instruction maps directly to this primitive, thus helps elide the
llock/scond based retry loop where possible.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
libc/sysdeps/linux/arc/bits/atomic.h