summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq/cpufreq-cpu0.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2013-10-03 20:28:35 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-16 00:50:29 +0200
commit179b889f7c5e6221a9fbf60cf4ef5e55be45cf34 (patch)
treeee87519cd9a81e9f364240cac0f7ca5115c7cbfd /drivers/cpufreq/cpufreq-cpu0.c
parent49ad1eabb6b46bc9d5b4f6c21bf0a555f35905d5 (diff)
downloadtalos-obmc-linux-179b889f7c5e6221a9fbf60cf4ef5e55be45cf34.tar.gz
talos-obmc-linux-179b889f7c5e6221a9fbf60cf4ef5e55be45cf34.zip
cpufreq: cpu0: don't initialize part of policy set by core too
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> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/cpufreq-cpu0.c')
-rw-r--r--drivers/cpufreq/cpufreq-cpu0.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c
index c4a7514b1e15..3c09a265903f 100644
--- a/drivers/cpufreq/cpufreq-cpu0.c
+++ b/drivers/cpufreq/cpufreq-cpu0.c
@@ -131,7 +131,6 @@ static int cpu0_cpufreq_init(struct cpufreq_policy *policy)
}
policy->cpuinfo.transition_latency = transition_latency;
- policy->cur = clk_get_rate(cpu_clk) / 1000;
/*
* The driver only supports the SMP configuartion where all processors
OpenPOWER on IntegriCloud