Skip to content

sched_ext: Improve code modularization

Andrea Righi lkml 1 version Applied

Status from this message: Applied to sched_ext/for-6.17.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4sched_ext: idle: Remove unnecessary ifdef in scx_bpf_cpu_node()kernel/sched/ext_idle.c+0 -40 replies
2/4sched_ext: idle: Make local functions static in ext_idle.ckernel/sched/ext_idle.c kernel/sched/ext_idle.h+17 -140 replies
3/4sched_ext: Make scx_rq_bypassing() inlinekernel/sched/ext.c kernel/sched/ext.h+5 -50 replies
4/4sched_ext: Make scx_locked_rq() sharedkernel/sched/ext.c kernel/sched/ext.h+3 -15 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] sched_ext: Improve code modularization

Despite the unusual structure of the scheduler code, where the source code of all scheduler classes is included in a single .c file, we should still structure the code as if each .c file were a standalone build unit. This means marking internal functions as static, declaring shared symbols via proper function prototypes in a header file, etc.

This patch series is a first step toward such cleanup for the sched_ext code. There is more work to do, but these changes are intentionally small to minimize potential disruption to the ongoing development, laying some groundwork for a cleaner and more maintainable code.

Andrea Righi (4):
sched_ext: idle: Remove unnecessary ifdef in scx_bpf_cpu_node()
sched_ext: idle: Make local functions static in ext_idle.c
sched_ext: Make scx_rq_bypassing() inline
sched_ext: Make scx_locked_rq() shared

 kernel/sched/ext.c      |  7 +------
 kernel/sched/ext.h      |  7 +++++++
 kernel/sched/ext_idle.c | 28 +++++++++++++++++-----------
 kernel/sched/ext_idle.h |  7 -------
 4 files changed, 25 insertions(+), 24 deletions(-)