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 <yury.norov@gmail.com> Signed-off-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
bc3a116a44
commit
9cf9aceed2
1 changed files with 1 additions and 4 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue