Skip to content

Commit e7dcd13

Browse files
arighihtejun
authored andcommitted
sched_ext: Remove duplicate BTF_ID_FLAGS definitions
Some kfuncs specific to the idle CPU selection policy are registered in both the scx_kfunc_ids_any and scx_kfunc_ids_idle blocks, even though they should only be defined in the latter. Remove the duplicates from scx_kfunc_ids_any. Fixes: 337d1b3 ("sched_ext: Move built-in idle CPU selection policy to a separate file") Signed-off-by: Andrea Righi <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent a11d678 commit e7dcd13

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

kernel/sched/ext.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7369,12 +7369,6 @@ BTF_ID_FLAGS(func, scx_bpf_nr_cpu_ids)
73697369
BTF_ID_FLAGS(func, scx_bpf_get_possible_cpumask, KF_ACQUIRE)
73707370
BTF_ID_FLAGS(func, scx_bpf_get_online_cpumask, KF_ACQUIRE)
73717371
BTF_ID_FLAGS(func, scx_bpf_put_cpumask, KF_RELEASE)
7372-
BTF_ID_FLAGS(func, scx_bpf_get_idle_cpumask, KF_ACQUIRE)
7373-
BTF_ID_FLAGS(func, scx_bpf_get_idle_smtmask, KF_ACQUIRE)
7374-
BTF_ID_FLAGS(func, scx_bpf_put_idle_cpumask, KF_RELEASE)
7375-
BTF_ID_FLAGS(func, scx_bpf_test_and_clear_cpu_idle)
7376-
BTF_ID_FLAGS(func, scx_bpf_pick_idle_cpu, KF_RCU)
7377-
BTF_ID_FLAGS(func, scx_bpf_pick_any_cpu, KF_RCU)
73787372
BTF_ID_FLAGS(func, scx_bpf_task_running, KF_RCU)
73797373
BTF_ID_FLAGS(func, scx_bpf_task_cpu, KF_RCU)
73807374
BTF_ID_FLAGS(func, scx_bpf_cpu_rq)

0 commit comments

Comments
 (0)