[PATCH v4] powernv, cpufreq: cpufreq driver for powernv platform

Viresh Kumar viresh.kumar at linaro.org
Thu Mar 27 21:22:01 EST 2014


On 27 March 2014 15:41, Vaidyanathan Srinivasan
<svaidy at linux.vnet.ibm.com> wrote:
>> > Why do you need to get these from DT? And not find that yourself here instead?

> DT provides the values that we should use.  Ideally these are the
> upper and lower limits of the PState table,  however as per the
> platform spec, we should use the PState IDs between these limits.  We
> would like to parse it and keep it in the driver for debug purposes.
>
> The platform exports this info in the DT to be more explicit and not
> have a strong dependency on the PState numbering or PState table
> itself.  In the driver we parse it for debug/validation purpose.

I couldn't find how they are used for debugging except this:

+ pr_info("cpufreq pstate min %d nominal %d max %d\n", pstate_min,
+ pstate_nominal, pstate_max);

This is the only place where these values are used.

Anyway, you can keep it if you really want to..


More information about the Linuxppc-dev mailing list