summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/sh-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-03-10 10:23:33 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-03-12 01:06:00 +0100
commite0b3165ba521c6824b3e9f563f38a701dfa2d8e6 (patch)
treec933f6ecc241a38c2e56f1b166c8c66d1635540c /drivers/cpufreq/sh-cpufreq.c
parentcpufreq: Reformat printk() statements (diff)
downloadlinux-e0b3165ba521c6824b3e9f563f38a701dfa2d8e6.tar.xz
linux-e0b3165ba521c6824b3e9f563f38a701dfa2d8e6.zip
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/sh-cpufreq.c')
-rw-r--r--drivers/cpufreq/sh-cpufreq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/cpufreq/sh-cpufreq.c b/drivers/cpufreq/sh-cpufreq.c
index 387af12503a6..696170ebd3a3 100644
--- a/drivers/cpufreq/sh-cpufreq.c
+++ b/drivers/cpufreq/sh-cpufreq.c
@@ -143,7 +143,6 @@ static int sh_cpufreq_cpu_exit(struct cpufreq_policy *policy)
unsigned int cpu = policy->cpu;
struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu);
- cpufreq_frequency_table_put_attr(cpu);
clk_put(cpuclk);
return 0;