diff options
| author | Yury Norov <[email protected]> | 2022-01-23 18:38:53 +0000 |
|---|---|---|
| committer | Paul E. McKenney <[email protected]> | 2022-02-14 18:36:58 +0000 |
| commit | 6a2c1d450a6a328027280a854019c55de989e14e (patch) | |
| tree | 1925663bebf81e6f9681cf7e7be9730dc6f3cc98 /drivers/acpi/cppc_acpi.c | |
| parent | rcu: Remove __read_mostly annotations from rcu_scheduler_active externs (diff) | |
| download | kernel-6a2c1d450a6a328027280a854019c55de989e14e.tar.gz kernel-6a2c1d450a6a328027280a854019c55de989e14e.zip | |
rcu: Replace cpumask_weight with cpumask_empty where appropriate
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 <[email protected]>
Acked-by: Frederic Weisbecker <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions
