Re: [PATCH V2] cpufreq: skip invalid entries when searching the frequency

From: Rafael J. Wysocki
Date: Wed Oct 12 2016 - 15:28:16 EST


On Wednesday, October 12, 2016 09:33:03 PM Aaro Koskinen wrote:
> Hi,
>
> On Wed, Oct 12, 2016 at 08:45:05AM +0530, Viresh Kumar wrote:
> > From: Aaro Koskinen <aaro.koskinen@xxxxxx>
> >
> > Skip invalid entries when searching the frequency. This fixes cpufreq
> > at least on loongson2 MIPS board.
> >
> > Fixes: da0c6dc00c69 ("cpufreq: Handle sorted frequency tables more efficiently")
> > Signed-off-by: Aaro Koskinen <aaro.koskinen@xxxxxx>
> > Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
> > ---
> > V1->V2:
> > - Use cpufreq_frequency_table() instead.
> >
> > Hi Aaro,
> >
> > Can you please test this patch instead?
>
> Seems to work as well.

I'm going to apply this patch then.

Thanks,
Rafael