Commit 0e7d3baa authored by Heiko Carstens's avatar Heiko Carstens
Browse files

s390/cmpxchg: Implement arch_xchg() with arch_try_cmpxchg()



Get rid of the arch_xchg() inline assemblies by converting the inline
assemblies to C functions which make use of arch_try_cmpxchg().

With flag output operand support the generated code is at least as good as
the previous version. Without it is slightly worse, however getting rid of
all the inline assembly code is worth it.

Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent 0b6de9ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment