cpufreq: cpu0: don't initialize part of policy set by core too
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 Oct 2013 14:58:35 +0000 (20:28 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Oct 2013 22:50:29 +0000 (00:50 +0200)
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>
drivers/cpufreq/cpufreq-cpu0.c

index c4a7514b1e152cc91f194fd43f03a11a07c52a20..3c09a265903fea1f90480401cc56aa192f419dd0 100644 (file)
@@ -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