From: Andreas Larsson Date: Wed, 5 Nov 2014 14:52:08 +0000 (+0100) Subject: sparc32: Implement xchg and atomic_xchg using ATOMIC_HASH locks X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~99^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a17fdc4f4ed06b63fac1937470378a5441a663a;p=pandora-kernel.git sparc32: Implement xchg and atomic_xchg using ATOMIC_HASH locks Atomicity between xchg and cmpxchg cannot be guaranteed when xchg is implemented with a swap and cmpxchg is implemented with locks. Without this, e.g. mcs_spin_lock and mcs_spin_unlock are broken. Signed-off-by: Andreas Larsson Signed-off-by: David S. Miller --- Reading git-diff-tree failed