| Date | Sun, 23 Jan 2022 22:00:04 +0000 | From | Wei Liu <> | Subject | Re: [PATCH 43/54] drivers/hv: replace cpumask_weight with cpumask_weight_eq |
| |
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@gmail.com>
Acked-by: Wei Liu <wei.liu@kernel.org>
|