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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: cpufreq-owner@xxxxxxxxxxxxxxx [mailto:cpufreq-owner@xxxxxxxxxxxxxxx]
> On Behalf Of Viresh Kumar
> Sent: 2013年3月30日 21:52
> To: Tang Yuantian-B29983
> Cc: Rafael J. Wysocki; cpufreq@xxxxxxxxxxxxxxx; Linux PM list; linuxppc-
> dev@xxxxxxxxxxxxxxxx; Li Yang-R58472
> Subject: Re: [PATCH v3] cpufreq: Add cpufreq driver for Freescale e500mc
> SoCs
> 
> On Fri, Mar 29, 2013 at 11:22 AM,  <Yuantian.Tang@xxxxxxxxxxxxx> wrote:
> > 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.
> 
OK, no problem.

Thanks,
Yuantian

> > +               clk = of_clk_get(data->parent, i);
> > +               table[i].frequency = clk_get_rate(clk) / 1000;
> > +       }
> --
> To unsubscribe from this list: send the line "unsubscribe cpufreq" in the
> body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at
> http://vger.kernel.org/majordomo-info.html

?韬{.n?????%??檩??w?{.n???珉z??^n?■???h?璀?{?夸z罐?+€?zf"?????i?????_璁?:+v??撸?





[Index of Archives]     [Linux Kernel Devel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Forum]     [Linux SCSI]

  Powered by Linux