sched_ext: Improve code modularization
Status from this message: Applied to sched_ext/for-6.17.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | sched_ext: idle: Remove unnecessary ifdef in scx_bpf_cpu_node()kernel/ | +0 | 0 replies | |
| 2/4 | sched_ext: idle: Make local functions static in ext_idle.ckernel/ kernel/ | +17 | 0 replies | |
| 3/4 | sched_ext: Make scx_rq_bypassing() inlinekernel/ kernel/ | +5 | 0 replies | |
| 4/4 | sched_ext: Make scx_locked_rq() sharedkernel/ kernel/ | +3 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)