Re: [PATCH 1/3] PM / OPP: Add support for descending order for cpufreq table
From: Nishanth Menon
Date: Mon May 05 2014 - 10:47:01 EST
On Mon, May 5, 2014 at 9:38 AM, Viresh Kumar <viresh.kumar@xxxxxxxxxx> wrote:
> On 5 May 2014 19:53, Nishanth Menon <nm@xxxxxx> wrote:
>> ceil and floor allows us to walk down the opp entries the direction we
>> want it to.
>> one can convert that data any way one wants it - especially when custom
>> mapping such as this is desired.
>
> Yeah, but doing that for every frequency transition is not right.
> Otherwise they already have a solution, where they reverse order
> of frequencies for their driver. exynos_sort_descend_freq_table().
>
> Probably that's a better solution then :)
Such a map should probably be done at probe, unless we have strong
reasons why not to.
>
> But, Jonghwan was probably trying to get this solved in the framework
> only, in case anybody else needs it.
>
Lets keep things simple for the time being. ideally users of a
framework should not depend on internal organization of data.
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/