]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: deprecation warn for scx_bpf_cpu_rq()
authorChristian Loehle <christian.loehle@arm.com>
Wed, 3 Sep 2025 21:23:11 +0000 (22:23 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 3 Sep 2025 21:51:57 +0000 (11:51 -1000)
commit5c48d88fe004988ec508923dbdd00549e65f4055
tree06cd3fb293b6104f5000ce40af01bf9207d88b3f
parent20b158094a1adc9bbfdcc41780059b5cd8866ad8
sched_ext: deprecation warn for scx_bpf_cpu_rq()

scx_bpf_cpu_rq() works on an unlocked rq which generally isn't safe.
For the common use-cases scx_bpf_locked_rq() and
scx_bpf_cpu_curr() work, so add a deprecation warning
to scx_bpf_cpu_rq() so it can eventually be removed.

Signed-off-by: Christian Loehle <christian.loehle@arm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c
kernel/sched/ext_internal.h