]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched_ext: idle: Refactor scx_select_cpu_dfl()
authorAndrea Righi <arighi@nvidia.com>
Fri, 14 Mar 2025 09:45:34 +0000 (10:45 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 14 Mar 2025 18:17:11 +0000 (08:17 -1000)
commite4855fc90e52efef7e3926205c8dc53ce39b6138
treee0ce21343f62b3fa13be7450f82385c8560dd228
parentc414c2171cd9ec2475fd641a16d6b2cac3344390
sched_ext: idle: Refactor scx_select_cpu_dfl()

Make scx_select_cpu_dfl() more consistent with the other idle-related
APIs by returning a negative value when an idle CPU isn't found.

No functional changes, this is purely a refactoring.

Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c
kernel/sched/ext_idle.c
kernel/sched/ext_idle.h