Re: [PATCH RESEND] sched: fair: drop useless cpumask_empty() in find_energy_efficient_cpu()
From: Peter Zijlstra
Date: Mon Dec 08 2025 - 03:51:38 EST
On Sat, Dec 06, 2025 at 11:05:42PM -0500, Yury Norov (NVIDIA) wrote:
> cpumask_empty() call is O(N) and useless because the previous
> cpumask_and() returns false for empty 'cpus'. Drop it.
>
> CC: Markus Elfring <Markus.Elfring@xxxxxx>
> Reviewed-by: Madadi Vineeth Reddy <vineethr@xxxxxxxxxxxxx>
> Reviewed-by: K Prateek Nayak <kprateek.nayak@xxxxxxx>
> Reviewed-by: Vincent Guittot <vincent.guittot@xxxxxxxxxx>
> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@xxxxxxxxx>
Picked it (and the other two) up for processing after rc1.