cpufreq: Use cpufreq_policy_list for iterating over policies
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 6 Aug 2013 17:23:09 +0000 (22:53 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 10 Aug 2013 01:24:46 +0000 (03:24 +0200)
commiteb608521f1e25a8c14295b6d9a3853c3cd8c6cf8
treee905b18c7beb3ad5671237c1315df6bf82575891
parentc88a1f8b96e7384627b918dfabbfc0c615a4a914
cpufreq: Use cpufreq_policy_list for iterating over policies

To iterate over all policies we currently iterate over all CPUs and
then get the policy for each of them.  Let's use the newly created
cpufreq_policy_list for this purpose.

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