cpufreq: Create for_each_policy()

To make code more readable and less error prone, lets create a helper macro for
iterating over all active policies.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Viresh Kumar 2015-01-27 14:06:08 +05:30 • committed by Rafael J. Wysocki
commit b4f0676fe2