Skip to content

s390/percpu: More small improvements

Heiko Carstens linux-s390 lkml sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4s390/percpu: Use asm_inline for arch_this_cpu_add()arch/s390/include/asm/percpu.h+2 -21 reply
2/4s390/percpu: Drop unused output register from arch_this_cpu_add()arch/s390/include/asm/percpu.h+4 -44 replies
3/4s390/percpu: Drop unused output register from arch_this_cpu_to_op()arch/s390/include/asm/percpu.h+4 -42 replies
4/4s390/percpu: Implement this_cpu_try_cmpxchg()arch/s390/include/asm/percpu.h+39 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchAlexander Gordeev
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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

Signature · 1 line
2.53.0