aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq/arm_big_little.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-03-10 14:53:33 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-03-12 01:06:00 +0100
commite0b3165ba521c6824b3e9f563f38a701dfa2d8e6 (patch)
treec933f6ecc241a38c2e56f1b166c8c66d1635540c /drivers/cpufreq/arm_big_little.c
parente837f9b58b83a705c9c14b26c3ee29fd9870322e (diff)
downloadleg-kernel-e0b3165ba521c6824b3e9f563f38a701dfa2d8e6.tar.gz
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/arm_big_little.c')
-rw-r--r--drivers/cpufreq/arm_big_little.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c
index 72f87e9317e3..3d8707848035 100644
--- a/drivers/cpufreq/arm_big_little.c
+++ b/drivers/cpufreq/arm_big_little.c
@@ -478,7 +478,6 @@ static int bL_cpufreq_exit(struct cpufreq_policy *policy)
return -ENODEV;
}
- cpufreq_frequency_table_put_attr(policy->cpu);
put_cluster_clk_and_freq_table(cpu_dev);
dev_dbg(cpu_dev, "%s: Exited, cpu: %d\n", __func__, policy->cpu);