aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-10-03 10:58:55 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-15 18:50:31 -0400
commiteaf8120e8f9c4efc71475b1e08b8e2d3e421e6ca (patch)
treeb1389dfd8833261042621347cc1e736fe5b00e25 /drivers/cpufreq
parentcb8bd497a61adea2ccb937e3181408fb95c78b52 (diff)
cpufreq: powernow: don't initialize part of policy set by core
Many common initializations of struct policy are moved to core now and hence this driver doesn't need to do it. This patch removes such code. Most recent of those changes is to call ->get() in the core after calling ->init(). 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')
-rw-r--r--drivers/cpufreq/powernow-k6.c1
-rw-r--r--drivers/cpufreq/powernow-k7.c2
-rw-r--r--drivers/cpufreq/powernow-k8.c3
3 files changed, 0 insertions, 6 deletions
diff --git a/drivers/cpufreq/powernow-k6.c b/drivers/cpufreq/powernow-k6.c
index ff05d284e48e..eda17024a34a 100644
--- a/drivers/cpufreq/powernow-k6.c
+++ b/drivers/cpufreq/powernow-k6.c
@@ -151,7 +151,6 @@ static int powernow_k6_cpu_init(struct cpufreq_policy *policy)
151 151
152 /* cpuinfo and default policy values */ 152 /* cpuinfo and default policy values */
153 policy->cpuinfo.transition_latency = 200000; 153 policy->cpuinfo.transition_latency = 200000;
154 policy->cur = busfreq * max_multiplier;
155 154
156 return cpufreq_table_validate_and_show(policy, clock_ratio); 155 return cpufreq_table_validate_and_show(policy, clock_ratio);
157} 156}
diff --git a/drivers/cpufreq/powernow-k7.c b/drivers/cpufreq/powernow-k7.c
index 14cd98f5a096..44d345bad6fb 100644
--- a/drivers/cpufreq/powernow-k7.c
+++ b/drivers/cpufreq/powernow-k7.c
@@ -673,8 +673,6 @@ static int powernow_cpu_init(struct cpufreq_policy *policy)
673 policy->cpuinfo.transition_latency = 673 policy->cpuinfo.transition_latency =
674 cpufreq_scale(2000000UL, fsb, latency); 674 cpufreq_scale(2000000UL, fsb, latency);
675 675
676 policy->cur = powernow_get(0);
677
678 return cpufreq_table_validate_and_show(policy, powernow_table); 676 return cpufreq_table_validate_and_show(policy, powernow_table);
679} 677}
680 678
diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c
index 1e6f68af87a4..298beb742ebb 100644
--- a/drivers/cpufreq/powernow-k8.c
+++ b/drivers/cpufreq/powernow-k8.c
@@ -1141,9 +1141,6 @@ static int powernowk8_cpu_init(struct cpufreq_policy *pol)
1141 cpumask_copy(pol->cpus, cpu_core_mask(pol->cpu)); 1141 cpumask_copy(pol->cpus, cpu_core_mask(pol->cpu));
1142 data->available_cores = pol->cpus; 1142 data->available_cores = pol->cpus;
1143 1143
1144 pol->cur = find_khz_freq_from_fid(data->currfid);
1145 pr_debug("policy current frequency %d kHz\n", pol->cur);
1146
1147 /* min/max the cpu is capable of */ 1144 /* min/max the cpu is capable of */
1148 if (cpufreq_table_validate_and_show(pol, data->powernow_table)) { 1145 if (cpufreq_table_validate_and_show(pol, data->powernow_table)) {
1149 printk(KERN_ERR FW_BUG PFX "invalid powernow_table\n"); 1146 printk(KERN_ERR FW_BUG PFX "invalid powernow_table\n");