Messages in this thread | ![/](/images/icornerl.gif) | | Date | Fri, 11 Feb 2022 16:17:50 +0100 | From | Frederic Weisbecker <> | Subject | Re: [PATCH rcu 9/9] rcu: Replace cpumask_weight with cpumask_empty where appropriate |
| |
On Fri, Feb 04, 2022 at 03:08:05PM -0800, Paul E. McKenney wrote: > From: Yury Norov <yury.norov@gmail.com> > > In some places, RCU code calls cpumask_weight() to check if any bit of a > given cpumask is set. We can do it more efficiently with cpumask_empty() > because cpumask_empty() stops traversing the cpumask as soon as it finds > first set bit, while cpumask_weight() counts all bits unconditionally. > > Signed-off-by: Yury Norov <yury.norov@gmail.com> > Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Acked-by: Frederic Weisbecker <frederic@kernel.org>
| ![\](/images/icornerr.gif) |