diff options
author | Andreas Larsson <andreas@gaisler.com> | 2014-11-05 17:52:08 +0300 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-11-19 14:32:56 +0300 |
commit | 1c854a6cd16b5096200fb47d1418b1d20f7df6bd (patch) | |
tree | b393c5dd33e7b21a0f854854ae0f5cdbf8249036 /drivers/char | |
parent | a80e35d99a6e184732ab484efd89af2b06f9e174 (diff) | |
download | linux-1c854a6cd16b5096200fb47d1418b1d20f7df6bd.tar.xz |
sparc32: Implement xchg and atomic_xchg using ATOMIC_HASH locks
[ Upstream commit 1a17fdc4f4ed06b63fac1937470378a5441a663a ]
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 <andreas@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions