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

Use arch_try_cmpxchg() instead of __atomic_cmpxchg() in
preempt_count_set() to generate similar or better code,
depending in compiler features.

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