Re: [PATCH] sched_ext: idle: small CPU iteration refactoring
From: Tejun Heo
Date: Mon Jan 06 2025 - 13:49:13 EST
On Sat, Jan 04, 2025 at 10:00:09AM +0100, Andrea Righi wrote:
> Replace the loop to check if all SMT CPUs are idle with
> cpumask_subset(). This simplifies the code and slightly improves
> efficiency, while preserving the original behavior.
>
> Note that idle_masks.smt handling remains racy, which is acceptable as
> it serves as an optimization and is self-correcting.
>
> Suggested-by: Yury Norov <yury.norov@xxxxxxxxx>
> Signed-off-by: Andrea Righi <arighi@xxxxxxxxxx>
Applied to sched_ext/for-6.14.
Thanks.
--
tejun