Skip to content
Commit d2b1f6d2 authored by Heiko Carstens's avatar Heiko Carstens
Browse files

s390/cmpxchg: get rid of gcc atomic builtins

s390 is the only architecture in the kernel which makes use of gcc's
atomic builtin functions. Even though I don't see any technical
problem with that right now, remove this code and open-code
compare-and-swap loops again, like every other architecture is doing
it also.
We can switch to a generic implementation when other architectures are
doing that also.

See also https://lwn.net/Articles/586838/

 for forther details.

This basically reverts commit f318a122 ("s390/cmpxchg: use
compiler builtins").

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