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)
commit1b27429446f0c37353179544e844dc2086fa2353
tree703e1d4bf17a72c23c4550ca85ed5279d092f794
parent474deff744c4012f07cfa994947d7c6260c9ab89
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