]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: cpufreq-dt: disable unsupported OPPs
authorLucas Stach <l.stach@pengutronix.de>
Fri, 24 Oct 2014 13:05:55 +0000 (15:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Oct 2014 17:41:34 +0000 (18:41 +0100)
commitc68478a55653fa3134897cb4017df4e6e23e5bc1
treeb6118c3066934e7cb2b6601a3c2a8a8055c0df0c
parent431599d88574e61c220968c5a6da09264c448033
cpufreq: cpufreq-dt: disable unsupported OPPs

If the regulator connected to the CPU voltage plane doesn't
support an OPP specified voltage with the acceptable tolerance
it's better to just disable the OPP instead of constantly
failing the voltage scaling later on.

Includes a fix to move initialization of opp_freq outside
the loop to avoid an endless loop from Geert Uytterhoeven.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-dt.c