]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/atomic: Provide arch_atomic_try_cmpxchg()
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 6 Nov 2024 10:03:13 +0000 (11:03 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 12 Nov 2024 13:01:29 +0000 (14:01 +0100)
commit5ba865ad579c6a7efc8f17dab760478a4c5eec66
treeb25e997fd7d14702991c3d2a93aca69ce34beb49
parentf99d670e31b960562fcd34587e9f824b6f05a144
s390/atomic: Provide arch_atomic_try_cmpxchg()

Since gcc 14 flag output operands are supported also for s390.

Provide an arch_atomic try_cmpxchg() implementation so that all
existing atomic_try_cmpxchg() usages generate slightly better code,
if compiled with gcc 14 or newer.

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