Thread (4 messages) 4 messages, 3 authors, 2013-04-01

Re: [PATCH v3] cpufreq: Add cpufreq driver for Freescale e500mc SoCs

From: Viresh Kumar <viresh.kumar@linaro.org>
Date: 2013-03-30 13:52:28
Also in: linux-pm

On Fri, Mar 29, 2013 at 11:22 AM,  [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/drivers/cpufreq/ppc-corenet-cpufreq.c b/drivers/cpufreq/ppc-corenet-cpufreq.c
+static int corenet_cpufreq_cpu_init(struct cpufreq_policy *policy)
+{
+       for (i = 0; i < count; i++) {
+               table[i].index = i;
One more thing, you don't need to set index at all as you aren't using it.
And cpufreq core never uses it.
+               clk = of_clk_get(data->parent, i);
+               table[i].frequency = clk_get_rate(clk) / 1000;
+       }
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help