Skip to content

x86: Use static_call for three smp_ops methods

Eric Dumazet lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3x86/smp: Use static_call for arch_send_call_function_single_ipi()arch/x86/include/asm/smp.h arch/x86/kernel/smp.c arch/x86/xen/smp_hvm.c +1 more+20 -20 replies
2/3x86/smp: Use static_call for arch_smp_send_reschedule()arch/x86/include/asm/smp.h arch/x86/kernel/smp.c+10 -20 replies
3/3x86/smp: Use static_call for arch_send_call_function_ipi()arch/x86/include/asm/smp.h arch/x86/kernel/smp.c+8 -20 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPeter Zijlstra (Intel)
SeriesA-b
1/3
2/3
3/3

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/3] x86: Use static_call for three smp_ops methods

Busy hosts with RFS enabled can send more than 6,000,000 IPI per second. arch_send_call_function_single_ipi() is currently using an indirect call (because Xen can override the target).

Indirect calls are expensive on some platforms with retpoline.

This series converts three smp_ops methods to static_call infrastructure to remove common indirect calls.

Eric Dumazet (3):
x86/smp: Use static_call for arch_send_call_function_single_ipi() x86/smp: Use static_call for arch_smp_send_reschedule() x86/smp: Use static_call for arch_send_call_function_ipi()

 arch/x86/include/asm/smp.h | 23 +++++++++++++++++------
 arch/x86/kernel/smp.c      | 19 +++++++++++++++++++
 arch/x86/xen/smp_hvm.c     |  1 +
 arch/x86/xen/smp_pv.c      |  1 +
 4 files changed, 38 insertions(+), 6 deletions(-)
Signature · 1 line
2.52.0.351.gbe84eed79e-goog