sched_ext: idle: use assign_cpu() to update the idle cpumask
PATCH 1/1 sched_ext: idle: use assign_cpu() to update the idle cpumask
Use the assign_cpu() helper to set or clear the CPU in the idle mask, based on the idle condition.
Acked-by Yury Norov <[email protected]>
Signed-off-by Andrea Righi <[email protected]>
--- kernel/sched/ext.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
kernel/sched/ext.c +1 -4
@@ -3654,10 +3654,7 @@ void __scx_update_idle(struct rq *rq, bool idle)return ; } -if (idle) -cpumask_set_cpu (cpu, idle_masks.cpu); -else -cpumask_clear_cpu (cpu, idle_masks.cpu); +assign_cpu (cpu, idle_masks.cpu, idle);#ifdef CONFIG_SCHED_SMT if (sched_smt_active ()) {
Signature · 1 line
2.47.1
Tejun Heo
AppliedQuoted 5 lines · Andrea Righi
Use the
assign_cpu()helper to set or clear the CPU in the idle mask, based on the idle condition.Acked-by Yury Norov <[email protected]>Signed-off-by Andrea Righi <[email protected]>
Applied to sched_ext/for-6.14.
Thanks.
Signature · 1 line
tejun