Skip to content

smp: Allow smp_call_function_single_async() to insert locked csd

Peter Xu lkml 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesApplied
  2. v11 patch 8 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3smp: Allow smp_call_function_single_async() to insert locked csdkernel/smp.c+11 -30 replies
2/3MIPS: smp: Remove tick_broadcast_countarch/mips/kernel/smp.c+1 -70 replies
3/3sched: Remove rq.hrtick_csd_pendingkernel/sched/core.c kernel/sched/sched.h+2 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] smp: Allow smp_call_function_single_async() to insert locked csd

This v2 introduced two more patches to let mips/kernel/smp.c and kernel/sched/core.c to start using the new feature, then we can drop the customized implementations.

One thing to mention is that cpuidle_coupled_poke_pending is another candidate that we can consider, however that cpumask is special in that it's not only used for singleton test of the per-vcpu csd when injecting new calls, but also in cpuidle_coupled_any_pokes_pending() or so to check whether there's any pending pokes. In that sense it should be good to still keep the mask because it could be faster than looping over each per-cpu csd.

Patch 1 is the same as v1, no change. Patch 2-3 are new ones.

Smoke tested on x86_64 only.

Please review, thanks.

Peter Xu (3):
smp: Allow smp_call_function_single_async() to insert locked csd
MIPS: smp: Remove tick_broadcast_count
sched: Remove rq.hrtick_csd_pending

 arch/mips/kernel/smp.c |  8 +-------
 kernel/sched/core.c    |  9 ++-------
 kernel/sched/sched.h   |  1 -
 kernel/smp.c           | 14 +++++++++++---
 4 files changed, 14 insertions(+), 18 deletions(-)
Signature · 1 line
2.23.0