diff options
| author | Tejun Heo <tj@kernel.org> | 2025-04-29 08:40:10 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-04-29 08:40:10 -1000 |
| commit | 48e12677738663c6ac7be6abe7b216ec74a5b6e6 (patch) | |
| tree | 9e6c5d0673767ff77450e326f84265b07cd955ca /kernel/sched/ext_idle.c | |
| parent | ce565f839c9e1c0952588f2b17ed4b02650f94b0 (diff) | |
sched_ext: Introduce scx_sched
To support multiple scheduler instances, collect some of the global
variables that should be specific to a scheduler instance into the new
struct scx_sched. scx_root is the root scheduler instance and points to a
static instance of struct scx_sched. Except for an extra dereference through
the scx_root pointer, this patch makes no functional changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Acked-by: Changwoo Min <changwoo@igalia.com>
Diffstat (limited to 'kernel/sched/ext_idle.c')
| -rw-r--r-- | kernel/sched/ext_idle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sched/ext_idle.c b/kernel/sched/ext_idle.c index 35aa309c9584..6915685cd3d6 100644 --- a/kernel/sched/ext_idle.c +++ b/kernel/sched/ext_idle.c @@ -744,7 +744,8 @@ void __scx_update_idle(struct rq *rq, bool idle, bool do_notify) * Idle transitions are indicated by do_notify being set to true, * managed by put_prev_task_idle()/set_next_task_idle(). */ - if (SCX_HAS_OP(update_idle) && do_notify && !scx_rq_bypassing(rq)) + if (SCX_HAS_OP(scx_root, update_idle) && + do_notify && !scx_rq_bypassing(rq)) SCX_CALL_OP(SCX_KF_REST, update_idle, rq, cpu_of(rq), idle); /* |