sched_ext: idle: Fix scx_bpf_pick_any_cpu_node() behavior
authorAndrea Righi <arighi@nvidia.com>
Tue, 25 Feb 2025 09:37:42 +0000 (10:37 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 25 Feb 2025 18:35:53 +0000 (08:35 -1000)
commitfde7d64766c1142fe79507bbef4968cee274cc0b
treeab6ff60f21eaffa765c993194665115eb047a081
parent0e9b4c10e833dbcfcdba63497463f1272c5efe4d
sched_ext: idle: Fix scx_bpf_pick_any_cpu_node() behavior

When %SCX_PICK_IDLE_IN_NODE is specified, scx_bpf_pick_any_cpu_node()
should always return a CPU from the specified node, regardless of its
idle state.

Also clarify this logic in the function documentation.

Fixes: 01059219b0cfd ("sched_ext: idle: Introduce node-aware idle cpu kfunc helpers")
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext_idle.c