]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/locking: Use arch_try_cmpxchg() instead of __atomic_cmpxchg_bool()
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 6 Nov 2024 10:03:15 +0000 (11:03 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 12 Nov 2024 13:01:29 +0000 (14:01 +0100)
commitd5fd93629af76748751ff583d35039e5834eeb47
tree71c069e43075647b06f920e7490199c337dda100
parent75a98ed6faa03656811922cd383994fa7c300259
s390/locking: Use arch_try_cmpxchg() instead of __atomic_cmpxchg_bool()

Use arch_try_cmpxchg() instead of __atomic_cmpxchg_bool() everywhere.
This generates the same code like before, but uses the standard
cmpxchg() implementation instead of a custom __atomic_cmpxchg_bool().

Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/spinlock.h
arch/s390/lib/spinlock.c