]> git.baikalelectronics.ru Git - kernel.git/commit
s390/atomic: get rid of gcc atomic builtins
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 22 Mar 2021 15:36:27 +0000 (16:36 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 12 Apr 2021 10:46:43 +0000 (12:46 +0200)
commite138f9fa1b0ba24874f0524a7d221480adbbb19d
tree6cdb42880a4a6b8f3ba65cfae703cbe031523e8a
parent393cc4e0800a93a79b207550b50571ee635b43be
s390/atomic: 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.

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