sched_ext: idle: Remove unnecessary ifdef in scx_bpf_cpu_node()
authorAndrea Righi <arighi@nvidia.com>
Wed, 4 Jun 2025 14:33:11 +0000 (16:33 +0200)
committerTejun Heo <tj@kernel.org>
Mon, 9 Jun 2025 16:25:02 +0000 (06:25 -1000)
commitc68ea8243c5cc901cea62f695504bec73195d906
tree383b0a7d49c5850b6f51557323c8a572aa576029
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
sched_ext: idle: Remove unnecessary ifdef in scx_bpf_cpu_node()

There's no need to make scx_bpf_cpu_node() dependent on CONFIG_NUMA,
since cpu_to_node() can be used also in systems with CONFIG_NUMA
disabled.

This also allows to always validate the @cpu argument regardless of the
CONFIG_NUMA settings.

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