]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Misc updates around scx_sched instance pointer
authorTejun Heo <tj@kernel.org>
Tue, 23 Sep 2025 19:03:26 +0000 (09:03 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 23 Sep 2025 19:03:26 +0000 (09:03 -1000)
commitc0008a5632103eae31302e83d012e2d3b0cfad41
tree50a9b311cb8fe02280143da4ce5cd42e96b707a4
parentd4f7d866667c32b097721a96ebf0b19e1c85a75a
sched_ext: Misc updates around scx_sched instance pointer

In preparation for multiple scheduler support:

- Add the @sch parameter to find_global_dsq() and refill_task_slice_dfl().

- Restructure scx_allow_ttwu_queue() and make it read scx_root into $sch.

- Make RCU protection in scx_dsq_move() and scx_bpf_dsq_move_to_local()
  explicit.

v2: Add scx_root -> sch conversion in scx_allow_ttwu_queue().

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