sched_ext: idle: Fix return code of scx_select_cpu_dfl()
authorAndrea Righi <arighi@nvidia.com>
Wed, 26 Mar 2025 19:18:49 +0000 (20:18 +0100)
committerTejun Heo <tj@kernel.org>
Wed, 26 Mar 2025 20:08:01 +0000 (10:08 -1000)
commit37477d9ecabd15323700313724479bea94d0421e
tree4707b5f5e34fbaf0bb5b95975c464f2a9e0c61d7
parentf6e0150b2003fb2b9265028a618aa1732b3edc8f
sched_ext: idle: Fix return code of scx_select_cpu_dfl()

Return -EBUSY when using %SCX_PICK_IDLE_CORE with scx_select_cpu_dfl()
if a fully idle SMT core cannot be found, instead of falling back to
@prev_cpu, which is not a fully idle SMT core in this case.

Fixes: c414c2171cd9e ("sched_ext: idle: Honor idle flags in the built-in idle selection policy")
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext_idle.c