Files
linux-stable-mirror/drivers
Rafael J. Wysocki c83189edf4 cpufreq: governor: Ensure sufficiently large sampling intervals
commit 56026645e2 upstream.

After commit aa7519af45 (cpufreq: Use transition_delay_us for legacy
governors as well) the sampling_rate field of struct dbs_data may be
less than the tick period which causes dbs_update() to produce
incorrect results, so make the code ensure that the value of that
field will always be sufficiently large.

Fixes: aa7519af45 (cpufreq: Use transition_delay_us for legacy governors as well)
Reported-by: Andy Tang <andy.tang@nxp.com>
Reported-by: Doug Smythies <dsmythies@telus.net>
Tested-by: Andy Tang <andy.tang@nxp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-31 14:03:50 +01:00
..
2017-12-14 09:53:13 +01:00
2017-11-03 09:02:30 -07:00
2018-01-17 09:45:27 +01:00
2018-01-17 09:45:23 +01:00
…
…
2017-12-29 17:53:46 +01:00
2018-01-17 09:45:27 +01:00
2018-01-31 14:03:49 +01:00
…
2017-11-03 09:02:30 -07:00
…
…
…
…
…
2018-01-02 20:31:05 +01:00
…
2017-12-17 15:07:56 +01:00
…