]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cmpxchg: get rid of gcc atomic builtins
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 6 Apr 2021 12:51:48 +0000 (14:51 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 12 Apr 2021 10:46:43 +0000 (12:46 +0200)
commit8be7b8336d268b553a997081c5dd84c38e5a7203
tree09c7d0100c69972f5bbba2955a9eadb76a056036
parente138f9fa1b0ba24874f0524a7d221480adbbb19d
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 cfa58436591a ("s390/cmpxchg: use
compiler builtins").

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/cmpxchg.h