Skip to content

sched_ext: pass the initial cpu.idle state in scx_cgroup_init_args

Tao Cui bpf lkml sched-ext 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesIn review
  2. v21 patch 4 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

- rename the new field to sched_idle, as a bare "idle" reads as CPU idle state in sched_ext (Tejun)
- split the tg->scx.idle rename into 2/2 so 1/2 stays minimal for stable backport
- add the Fixes: tag (Andrea)
- regenerate on top of current linux-next, which also resolves the CI conflict reported against v2

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched_ext: pass the initial cpu.idle state in scx_cgroup_init_argskernel/sched/ext/ext.c kernel/sched/ext/internal.h kernel/sched/ext/sub.c+8 -10 replies
2/2sched_ext: rename tg->scx.idle to tg->scx.sched_idleinclude/linux/sched/ext.h kernel/sched/ext/ext.c kernel/sched/ext/sub.c+7 -71 reply

Reviews trailers per patch

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

PatchAndrea Righi
SeriesR-b
1/2R-b
2/2

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

Read the v3 thread

Cover letter [PATCH v3 0/2] sched_ext: pass the initial cpu.idle state in scx_cgroup_init_args

From: Tao Cui <[email protected]>

This carries the initial cpu.idle state of a cgroup through ops.cgroup_init(), which was the only cpu controller knob whose initial value never reached the BPF scheduler. Patch 1 is the fix; patch 2 renames tg->scx.idle to tg->scx.sched_idle, suggested in review, as a separate cleanup.

Changes since v2:

- rename the new field to sched_idle, as a bare "idle" reads as CPU idle state in sched_ext (Tejun)
- split the tg->scx.idle rename into 2/2 so 1/2 stays minimal for stable backport
- add the Fixes: tag (Andrea)
- regenerate on top of current linux-next, which also resolves the CI conflict reported against v2

v2: https://lore.kernel.org/r/[email protected]
v1: https://lore.kernel.org/r/[email protected]

Tao Cui (2):
sched_ext: pass the initial cpu.idle state in scx_cgroup_init_args
sched_ext: rename tg->scx.idle to tg->scx.sched_idle

 include/linux/sched/ext.h   | 2 +-
 kernel/sched/ext/ext.c      | 8 +++++---
 kernel/sched/ext/internal.h | 3 +++
 kernel/sched/ext/sub.c      | 2 ++
 4 files changed, 11 insertions(+), 4 deletions(-)
Signature · 1 line
2.43.0