]> Gentwo Git Trees - linux/.git/commit
sched_ext: idle: Honor idle flags in the built-in idle selection policy
authorAndrea Righi <arighi@nvidia.com>
Fri, 14 Mar 2025 09:45:33 +0000 (10:45 +0100)
committerTejun Heo <tj@kernel.org>
Fri, 14 Mar 2025 18:17:01 +0000 (08:17 -1000)
commitc414c2171cd9ec2475fd641a16d6b2cac3344390
tree3564b0131ccbfa0c48937ff2ad009f9a69e68b20
parent97e13ecb026684dcd428910701662275175a2315
sched_ext: idle: Honor idle flags in the built-in idle selection policy

Enable passing idle flags (%SCX_PICK_IDLE_*) to scx_select_cpu_dfl(),
to enforce strict selection criteria, such as selecting an idle CPU
strictly within @prev_cpu's node or choosing only a fully idle SMT core.

This functionality will be exposed through a dedicated kfunc in a
separate patch.

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