]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: s390: Use try_cmpxchg() instead of cmpxchg() loops
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 26 Nov 2024 10:25:13 +0000 (11:25 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 27 Nov 2024 11:55:15 +0000 (12:55 +0100)
commit5618c53d96d1bf2df07df8b9204773db28acbc1b
treee270549b85efe377ca3a3d84d5e603100cf42ba3
parent7726b55b5d6c22dc0e66570597bf6e43d410d093
KVM: s390: Use try_cmpxchg() instead of cmpxchg() loops

Convert all cmpxchg() loops to try_cmpxchg() loops. With gcc 14 and the
usage of flag output operands in try_cmpxchg() this allows the compiler to
generate slightly better code.

Acked-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
Link: https://lore.kernel.org/r/20241126102515.3178914-2-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kvm/gaccess.c
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/pci.c