mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] s390/percpu: More small improvements
@ 2026-10-12 11:42 Heiko Carstens
  2026-10-12 11:42 ` [PATCH 1/4] s390/percpu: Use asm_inline for arch_this_cpu_add() Heiko Carstens
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Heiko Carstens @ 2026-10-12 11:42 UTC (permalink / raw)
  To: Alexander Gordeev, Sven Schnelle, Vasily Gorbik, Christian Borntraeger
  Cc: linux-kernel, linux-s390

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-10-12 15:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12 11:42 [PATCH 0/4] s390/percpu: More small improvements Heiko Carstens
2026-10-12 11:42 ` [PATCH 1/4] s390/percpu: Use asm_inline for arch_this_cpu_add() Heiko Carstens
2026-10-12 12:41   ` Alexander Gordeev
2026-10-12 11:42 ` [PATCH 2/4] s390/percpu: Drop unused output register from arch_this_cpu_add() Heiko Carstens
2026-10-12 13:24   ` Alexander Gordeev
2026-10-12 14:16     ` Heiko Carstens
2026-10-12 14:34   ` Alexander Gordeev
2026-10-12 11:42 ` [PATCH 3/4] s390/percpu: Drop unused output register from arch_this_cpu_to_op() Heiko Carstens
2026-10-12 14:35   ` Alexander Gordeev
2026-10-12 11:42 ` [PATCH 4/4] s390/percpu: Implement this_cpu_try_cmpxchg() Heiko Carstens
2026-10-12 15:11   ` Alexander Gordeev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®