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)
commitf08f638b9c7f1bf3cb9006d3d26bf568d807ede0
tree5d2312f8f6f7f662332b53e26b9df77ca18547b1
parent70f43e5e798c8818d97d8d6a9bd4cd3235af9686
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
This page took 0.028051 seconds and 5 git commands to generate.