cpufreq: Create for_each_policy()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 27 Jan 2015 08:36:08 +0000 (14:06 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Feb 2015 22:27:45 +0000 (23:27 +0100)
commitb4f0676fe20da6abe4577cf960862bed7a31647e
tree949518ef27c36a472170c0cbd571d438a7e6fee8
parent1e63eaf0c45f0ac733ef2818cd93e3e9047ef1c5
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>
drivers/cpufreq/cpufreq.c