diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-05-08 11:53:45 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-05-15 02:32:46 +0200 |
commit | 988bed09d35a8533eb59868692b827dfae7b66fe (patch) | |
tree | 45777d48e928be969defae6948d84f85d41a1909 /drivers/cpufreq/cpufreq_conservative.c | |
parent | f963735a3ca388da4893fc2d463eca6b58667add (diff) | |
download | talos-op-linux-988bed09d35a8533eb59868692b827dfae7b66fe.tar.gz talos-op-linux-988bed09d35a8533eb59868692b827dfae7b66fe.zip |
cpufreq: Don't clear cpufreq_cpu_data and policy list for inactive policies
Now that we can check policy->cpus to find if policy is active or not,
we don't need to clean cpufreq_cpu_data and delete policy from the list
on light weight tear down of policies (like in suspend).
To make it consistent and clean, set cpufreq_cpu_data for all related
CPUs when the policy is first created and clean it only while it is
freed.
Also update cpufreq_cpu_get_raw() to check if cpu is part of
policy->cpus mask, so that we don't end up getting policies for offline
CPUs.
In order to make sure that no users of 'policy' are using an inactive
policy, use cpufreq_cpu_get_raw() instead of directly accessing
cpufreq_cpu_data.
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_conservative.c')
0 files changed, 0 insertions, 0 deletions