diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-05-12 08:50:11 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-05-15 02:26:07 +0200 |
commit | f963735a3ca388da4893fc2d463eca6b58667add (patch) | |
tree | cd2a7ff4b788e3ab2f1826e59af92c73f8f8dd6b /drivers/cpufreq/cpufreq_governor.h | |
parent | cpufreq: arm_big_little: remove compile-time dependency on BIG_LITTLE (diff) | |
download | linux-f963735a3ca388da4893fc2d463eca6b58667add.tar.xz linux-f963735a3ca388da4893fc2d463eca6b58667add.zip |
cpufreq: Create for_each_{in}active_policy()
policy->cpus is cleared unconditionally now on hotplug-out of a CPU and
it can be checked to know if a policy is active or not. Create helper
routines to iterate over all active/inactive policies, based on
policy->cpus field.
Replace all instances of for_each_policy() with for_each_active_policy()
to make them iterate only for active policies. (We haven't made changes
yet to keep inactive policies in the same list, but that will be
followed in a later patch).
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq_governor.h')
0 files changed, 0 insertions, 0 deletions