Re: [PATCH 43/54] drivers/hv: replace cpumask_weight with cpumask_weight_eq
From: Wei Liu
Date: Sun Jan 23 2022 - 17:00:12 EST
On Sun, Jan 23, 2022 at 10:39:14AM -0800, Yury Norov wrote:
> init_vp_index() calls cpumask_weight() to compare the weights of cpumasks
> We can do it more efficiently with cpumask_weight_eq because conditional
> cpumask_weight may stop traversing the cpumask earlier (at least one), as
> soon as condition is met.
>
> Signed-off-by: Yury Norov <yury.norov@xxxxxxxxx>
Acked-by: Wei Liu <wei.liu@xxxxxxxxxx>