[PATCH 0/4] s390/percpu: More small improvements

From: Heiko Carstens

Date: Mon Oct 12 2026 - 07:44:14 EST


Some more improvements for the preemptible percpu code. The missing
asm_inline conversion addressed with the first patch is the most
important one. While I first thought that it is a compiler glitch that
some simple this_cpu operations are not inlined anymore it was a simple
asm_inline vs asm in front of percpu inline assemblies which caused this.
With this addressed inlining works again like expected.

Two more patches reduce register pressure for inline assemblies. The last
patch implements this_cpu_try_cmpxchg() for s390 so the compiler can
generate slightly better code similar to try_cmpxchg().

Series applies on top of linux-next 20261008.

Thanks,
Heiko

Heiko Carstens (4):
s390/percpu: Use asm_inline for arch_this_cpu_add()
s390/percpu: Drop unused output register from arch_this_cpu_add()
s390/percpu: Drop unused output register from arch_this_cpu_to_op()
s390/percpu: Implement this_cpu_try_cmpxchg()

arch/s390/include/asm/percpu.h | 59 ++++++++++++++++++++++++++++------
1 file changed, 49 insertions(+), 10 deletions(-)

base-commit: aac26bee2287c88af5be5a5ff96d783b19a28790
--
2.53.0