]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Update demo schedulers and selftests to use scx_bpf_task_set_dsq_vtime()
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Sun, 15 Mar 2026 08:24:40 +0000 (16:24 +0800)
committerTejun Heo <tj@kernel.org>
Sun, 15 Mar 2026 08:53:59 +0000 (22:53 -1000)
commit6712c4fefca0422851b71d1a58a32ea03f69310f
treeed98886d0d2f2c09b1fa322ad693ef9c5fdb0bc1
parentc959218c6533cf7e373cb5ccddb93f582ee5d47b
sched_ext: Update demo schedulers and selftests to use scx_bpf_task_set_dsq_vtime()

Direct writes to p->scx.dsq_vtime are deprecated in favor of
scx_bpf_task_set_dsq_vtime(). Update scx_simple, scx_flatcg, and
select_cpu_vtime selftest to use the new kfunc with
scale_by_task_weight_inverse().

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/scx_flatcg.bpf.c
tools/sched_ext/scx_simple.bpf.c
tools/testing/selftests/sched_ext/select_cpu_vtime.bpf.c