All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET sched_ext/for-7.3] sched_ext: Rename the cid-form cgroup ops to cpuctl_*
@ 2026-07-18 10:10 Tejun Heo
  2026-07-18 10:10 ` [PATCH 1/2] tools/sched_ext: Add SCX_OPS_CID_OPEN for cid-form schedulers Tejun Heo
  2026-07-18 10:10 ` [PATCH 2/2] sched_ext: Rename the cid-form cgroup ops to cpuctl_* Tejun Heo
  0 siblings, 2 replies; 3+ messages in thread
From: Tejun Heo @ 2026-07-18 10:10 UTC (permalink / raw)
  To: David Vernet, Andrea Righi, Changwoo Min
  Cc: sched-ext, Emil Tsalapatis, linux-kernel, Tejun Heo

Hello,

Two unrelated things go by "cgroup" in the cid form. Sub-schedulers attach
to cgroups, and the cgroup_*() ops deliver cpu controller events. While the
ops names suggest cgroup2 hierarchy, they actually operate on the cpu
controller. The cid form has no users beyond scx_qmap yet, so rename the
ops to cpuctl_* while the ABI can still change. The cpu form is deployed
ABI and keeps the old names.

- 0001 factors the skeleton open path out of SCX_OPS_OPEN() and adds
  SCX_OPS_CID_OPEN() so that cid-form skeletons don't depend on the
  cpu-form member names dereferenced by the compat clears.

- 0002 renames the ops to cpuctl_* in struct sched_ext_ops_cid and updates
  scx_qmap, the only cid-form scheduler.

Based on sched_ext/for-7.3 (7c2cd767705d) plus the cgroup migration
patchset:

  https://lore.kernel.org/r/20260718081727.582037-1-tj@kernel.org

Tejun Heo (2):
  tools/sched_ext: Add SCX_OPS_CID_OPEN for cid-form schedulers
  sched_ext: Rename the cid-form cgroup ops to cpuctl_*

Git tree: git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext.git scx-cpuctl-rename

 kernel/sched/ext/ext.c               | 36 ++++++++++++++++++------------------
 kernel/sched/ext/internal.h          | 25 ++++++++++++-------------
 tools/sched_ext/include/scx/compat.h | 30 ++++++++++++++++++++++--------
 tools/sched_ext/scx_qmap.bpf.c       | 22 +++++++++++-----------
 tools/sched_ext/scx_qmap.c           |  4 ++--
 tools/sched_ext/scx_qmap.h           |  2 +-
 6 files changed, 66 insertions(+), 53 deletions(-)

--
tejun

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-18 10:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-18 10:10 [PATCHSET sched_ext/for-7.3] sched_ext: Rename the cid-form cgroup ops to cpuctl_* Tejun Heo
2026-07-18 10:10 ` [PATCH 1/2] tools/sched_ext: Add SCX_OPS_CID_OPEN for cid-form schedulers Tejun Heo
2026-07-18 10:10 ` [PATCH 2/2] sched_ext: Rename the cid-form cgroup ops to cpuctl_* Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.