]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Factor out scx_dispatch_sched()
authorTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:03 +0000 (07:58 -1000)
committerTejun Heo <tj@kernel.org>
Fri, 6 Mar 2026 17:58:03 +0000 (07:58 -1000)
commit39d0b2c43776fc84a27b2fc37cebe89e442aafd8
tree3e471abdb49e8b6699a5b95984362a7b7cb17d94
parentc7f0e467a27a9ee98a324f12b25abf53280d71d0
sched_ext: Factor out scx_dispatch_sched()

In preparation of multiple scheduler support, factor out
scx_dispatch_sched() from balance_one(). The function boundary makes
remembering $prev_on_scx and $prev_on_rq less useful. Open code $prev_on_scx
in balance_one() and $prev_on_rq in both balance_one() and
scx_dispatch_sched().

No functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
kernel/sched/ext.c