]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/cmpxchg: Provide arch_try_cmpxchg()
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 6 Nov 2024 10:03:07 +0000 (11:03 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Tue, 12 Nov 2024 13:01:28 +0000 (14:01 +0100)
commit0b6de9aec285d24d49a918d52915ed231b2d9e87
tree25332fde377cb9a55b9c8486fe08d5eba1033fc0
parentc8603d692857a43e6f8b7b5eccab1d9aec48bd12
s390/cmpxchg: Provide arch_try_cmpxchg()

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

Provide an arch_try_cmpxchg() implementation so that all existing
try_cmpxchg() variants provide 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/asm.h [new file with mode: 0644]
arch/s390/include/asm/cmpxchg.h