diff options
| author | Christian Loehle <christian.loehle@arm.com> | 2025-09-03 22:23:11 +0100 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-09-03 11:51:57 -1000 |
| commit | 5c48d88fe004988ec508923dbdd00549e65f4055 (patch) | |
| tree | 06cd3fb293b6104f5000ce40af01bf9207d88b3f /kernel/sched/ext_internal.h | |
| parent | 20b158094a1adc9bbfdcc41780059b5cd8866ad8 (diff) | |
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>
Diffstat (limited to 'kernel/sched/ext_internal.h')
| -rw-r--r-- | kernel/sched/ext_internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/ext_internal.h b/kernel/sched/ext_internal.h index af4c054fb6f8..2e289931e567 100644 --- a/kernel/sched/ext_internal.h +++ b/kernel/sched/ext_internal.h @@ -872,6 +872,7 @@ struct scx_sched { struct scx_sched_pcpu __percpu *pcpu; bool warned_zero_slice; + bool warned_deprecated_rq; atomic_t exit_kind; struct scx_exit_info *exit_info; |