]> www.infradead.org Git - users/hch/configfs.git/commit
sched_ext: Add __COMPAT helpers for features added during v6.12 devel cycle
authorTejun Heo <tj@kernel.org>
Wed, 25 Sep 2024 21:58:44 +0000 (11:58 -1000)
committerTejun Heo <tj@kernel.org>
Wed, 25 Sep 2024 21:58:44 +0000 (11:58 -1000)
commit1e123fd73deb16cb362ecefb55c90c9196f4a6c2
treebed63c4da7cba2dec74afc43e4350dcabdbbae1b
parent42268ad0eb4142245ea40ab01a5690a40e9c3b41
sched_ext: Add __COMPAT helpers for features added during v6.12 devel cycle

cgroup support and scx_bpf_dispatch[_vtime]_from_dsq() are newly added since
8bb30798fd6e ("sched_ext: Fixes incorrect type in bpf_scx_init()") which is
the current earliest commit targeted by BPF schedulers. Add compat helpers
for them and apply them in the example schedulers.

These will be dropped after a few kernel releases. The exact backward
compatibility window hasn't been decided yet.

Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/include/scx/compat.bpf.h
tools/sched_ext/scx_flatcg.bpf.c
tools/sched_ext/scx_qmap.bpf.c