]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitb23eb636d7f9f3d7c3ae0dd443cf26c4cc1e18f7
tree6cdb42880a4a6b8f3ba65cfae703cbe031523e8a
parentca897bb1814fc77ce2ded7b31350ff2b25ccb0a4
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