]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/sched_ext: Add compat handling for sub-scheduler ops
authorAndrea Righi <arighi@nvidia.com>
Sun, 22 Mar 2026 06:35:46 +0000 (07:35 +0100)
committerTejun Heo <tj@kernel.org>
Sun, 22 Mar 2026 20:03:05 +0000 (10:03 -1000)
commitf03ffe53ab6ffc798ed8291090cebf19c6e5fa3b
tree29871de973a6456d1dfabf4e16e57da223f3279f
parent63f500c32a37d490ec623a3130e488cdb9bd6cf7
tools/sched_ext: Add compat handling for sub-scheduler ops

Extend SCX_OPS_OPEN() with compatibility handling for ops.sub_attach()
and ops.sub_detach(), allowing scx C schedulers with sub-scheduler
support to run on kernels both with and without its support.

Cc: Cheng-Yang Chou <yphbchou0911@gmail.com>
Fixes: ebeca1f930ea ("sched_ext: Introduce cgroup sub-sched support")
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Reviewed-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/include/scx/compat.h