diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-12-03 09:37:54 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-12-09 22:26:12 +0100 |
commit | f08f638b9c7f1bf3cb9006d3d26bf568d807ede0 (patch) | |
tree | 5d2312f8f6f7f662332b53e26b9df77ca18547b1 /drivers/cpufreq/p4-clockmod.c | |
parent | 70f43e5e798c8818d97d8d6a9bd4cd3235af9686 (diff) | |
download | linux-f08f638b9c7f1bf3cb9006d3d26bf568d807ede0.tar.bz2 |
cpufreq: ondemand: update update_sampling_rate() to make it more efficient
Currently update_sampling_rate() runs over each online CPU and
cancels/queues timers on all policy->cpus every time. This should be
done just once for any cpu belonging to a policy.
Create a cpumask and keep on clearing it as and when we process
policies, so that we don't have to traverse through all CPUs of the same
policy.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/p4-clockmod.c')
0 files changed, 0 insertions, 0 deletions