]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/sched_ext: Add compat helper for scx_bpf_cpu_curr()
authorAndrea Righi <arighi@nvidia.com>
Thu, 4 Sep 2025 05:31:00 +0000 (07:31 +0200)
committerTejun Heo <tj@kernel.org>
Thu, 4 Sep 2025 06:40:45 +0000 (20:40 -1000)
commita08b4dcad9fae495bcd88b91fb3410abf77d268e
tree94121bede6979f2f00ac085cae16518990afaac2
parent5c48d88fe004988ec508923dbdd00549e65f4055
tools/sched_ext: Add compat helper for scx_bpf_cpu_curr()

Introduce a compatibility helper that allows BPF schedulers to use
scx_bpf_cpu_curr() on older kernels.

Fixes: 20b158094a1ad ("sched_ext: Introduce scx_bpf_cpu_curr()")
Cc: Christian Loehle <christian.loehle@arm.com>
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/include/scx/common.bpf.h
tools/sched_ext/include/scx/compat.bpf.h