Skip to content

smp: Make softirq handling RT friendly

Thomas Gleixner lkml 2 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 2 repliesApplied
  2. v42 patches 1 replySuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/3sched: Fix missing prototype warningsinclude/linux/sched.h kernel/sched/build_policy.c kernel/sched/build_utility.c +6 more+17 -100 replies
2/3smp: Rename flush_smp_call_function_from_idle()kernel/sched/core.c kernel/sched/idle.c kernel/sched/smp.h +1 more+24 -110 replies
3/3smp: Make softirq handling RT safe in flush_smp_call_function_queue()include/linux/interrupt.h kernel/smp.c kernel/softirq.c+26 -11 reply

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 v5 thread

Cover letter [patch V5 0/3] smp: Make softirq handling RT friendly

The invocation of do_softirq() in flush_smp_call_function_from_idle() breaks on RT because RT does not provide do_softirq().

Aside of that flush_smp_call_function_from_idle() is a misnomer since the function is invoked not only from idle, but also from the scheduler migration thread.

The following series addresses this. Changes vs. V4, which can be found
here: https://lore.kernel.org/lkml/[email protected]

- Fix a boatload of missing prototypes warning related to the scheduler and its header files.

Thanks,

tglx

---
 include/linux/interrupt.h    |    9 +++++++++
 include/linux/sched.h        |    2 ++
 kernel/sched/build_policy.c  |    2 ++
 kernel/sched/build_utility.c |    1 +
 kernel/sched/core.c          |    5 ++++-
 kernel/sched/deadline.c      |    2 --
 kernel/sched/fair.c          |    1 +
 kernel/sched/idle.c          |    2 +-
 kernel/sched/sched.h         |    8 ++------
 kernel/sched/smp.h           |    6 ++++++
 kernel/smp.c                 |   32 ++++++++++++++++++++++++--------
 kernel/softirq.c             |   13 +++++++++++++
 kernel/stop_machine.c        |    2 --
 13 files changed, 65 insertions(+), 20 deletions(-)