]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: ondemand: update update_sampling_rate() to make it more efficient
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Dec 2015 04:07:54 +0000 (09:37 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Dec 2015 21:26:12 +0000 (22:26 +0100)
commit5fa507d0b4e46946d46352167d95b50a90c05921
tree5d2312f8f6f7f662332b53e26b9df77ca18547b1
parent908835525f55d2ab432c7ddfbcf2a9a6eaadeb9d
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>
drivers/cpufreq/cpufreq_ondemand.c