Skip to content
Commit 1a17fdc4 authored by Andreas Larsson's avatar Andreas Larsson Committed by David S. Miller
Browse files

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: default avatarAndreas Larsson <andreas@gaisler.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ab5c7809
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment