diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2014-03-10 05:23:33 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-11 20:06:00 -0400 |
commit | e0b3165ba521c6824b3e9f563f38a701dfa2d8e6 (patch) | |
tree | c933f6ecc241a38c2e56f1b166c8c66d1635540c /drivers/cpufreq/powernow-k8.c | |
parent | e837f9b58b83a705c9c14b26c3ee29fd9870322e (diff) |
cpufreq: add 'freq_table' in struct cpufreq_policy
freq table is not per CPU but per policy, so it makes more sense to
keep it within struct cpufreq_policy instead of a per-cpu variable.
This patch does it. Over that, there is no need to set policy->freq_table
to NULL in ->exit(), as policy structure is going to be freed soon.
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/powernow-k8.c')
-rw-r--r-- | drivers/cpufreq/powernow-k8.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index 6684e0342792..27eb2be44de5 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c | |||
@@ -1164,8 +1164,6 @@ static int powernowk8_cpu_exit(struct cpufreq_policy *pol) | |||
1164 | 1164 | ||
1165 | powernow_k8_cpu_exit_acpi(data); | 1165 | powernow_k8_cpu_exit_acpi(data); |
1166 | 1166 | ||
1167 | cpufreq_frequency_table_put_attr(pol->cpu); | ||
1168 | |||
1169 | kfree(data->powernow_table); | 1167 | kfree(data->powernow_table); |
1170 | kfree(data); | 1168 | kfree(data); |
1171 | for_each_cpu(cpu, pol->cpus) | 1169 | for_each_cpu(cpu, pol->cpus) |