aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cppc_cpufreq.c
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2022-01-23 18:38:47 +0000
committerViresh Kumar <[email protected]>2022-02-09 07:50:03 +0000
commitb48cd0d12f8e3b5fc928ac84734e563eda8e430f (patch)
tree1d6b986be015c87c2644236ef7217251e522ce14 /drivers/cpufreq/cppc_cpufreq.c
parentcpufreq: qcom-hw: Delay enabling throttle_irq (diff)
downloadkernel-b48cd0d12f8e3b5fc928ac84734e563eda8e430f.tar.gz
kernel-b48cd0d12f8e3b5fc928ac84734e563eda8e430f.zip
cpufreq: replace cpumask_weight with cpumask_empty where appropriate
drivers/cpufreq 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]> Reviewed-by: Sudeep Holla <[email protected]> (for SCMI cpufreq driver) Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions