cpufreq: governor: Reset sample delay in store_sampling_rate()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 15 Feb 2016 01:20:11 +0000 (02:20 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Mar 2016 13:41:04 +0000 (14:41 +0100)
commit78347cdb89065f9d40ea28596ef2bd8058eb6d12
tree0ad72319050e7f7657e16891ae051a6ff5fd8eb3
parent4cccf7555770b787fa80791a1407a27301f03920
cpufreq: governor: Reset sample delay in store_sampling_rate()

If store_sampling_rate() updates the sample delay when the ondemand
governor is in the middle of its high/low dance (OD_SUB_SAMPLE sample
type is set), the governor will still do the bottom half of the
previous sample which may take too much time.

To prevent that from happening, change store_sampling_rate() to always
reset the sample delay to 0 which also is consistent with the new
behavior of cpufreq_governor_limits().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq_governor.c
This page took 0.024854 seconds and 5 git commands to generate.