Commit 9cf9acee authored by Andrea Righi's avatar Andrea Righi Committed by Tejun Heo
Browse files

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: default avatarYury Norov <yury.norov@gmail.com>
Signed-off-by: default avatarAndrea Righi <arighi@nvidia.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent bc3a116a
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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()) {