]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Use cpufreq_policy_list for iterating over policies
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 20 Aug 2013 06:38:26 +0000 (12:08 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 20 Aug 2013 13:43:50 +0000 (15:43 +0200)
commit2cd76dfc95910e72e111cfb37e568e3bc74653e1
tree703e1d4bf17a72c23c4550ca85ed5279d092f794
parentfb093e29af61ed275f371bc5758343365f1b3aa8
cpufreq: Use cpufreq_policy_list for iterating over policies

To iterate over all policies we currently iterate over all online
CPUs and then get the policy for each of them which is suboptimal.
Use the newly created cpufreq_policy_list for this purpose instead.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c