Fix two bugs in sparc atomics.
authorDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2015 03:07:28 +0000 (19:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Feb 2015 07:39:50 +0000 (23:39 -0800)
commitedac0a60c7514b8c9b59488cffdac6b22267e757
tree51417325552e5133fe74301e6053bc60fbef9ed4
parentd4abeca50400747402a5a33f3a8aa0941be076d5
Fix two bugs in sparc atomics.

* sysdeps/sparc/sparc32/bits/atomic.h
(__sparc32_atomic_do_unlock24): Put the memory barrier before the
unlock not after it.
(__v9_compare_and_exchange_val_32_acq): Use unions to avoid getting
volatile register usage warnings from the compiler.
ChangeLog
sysdeps/sparc/sparc32/bits/atomic.h