aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq/cpufreq_ondemand.c
diff options
context:
space:
mode:
authorGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2016-02-15 02:20:11 +0100
committerGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2016-03-09 14:41:04 +0100
commit78347cdb89065f9d40ea28596ef2bd8058eb6d12 (patch)
tree0ad72319050e7f7657e16891ae051a6ff5fd8eb3 /drivers/cpufreq/cpufreq_ondemand.c
parentcpufreq: governor: Get rid of the ->gov_check_cpu callback (diff)
downloadlinux-78347cdb89065f9d40ea28596ef2bd8058eb6d12.tar.gz
linux-78347cdb89065f9d40ea28596ef2bd8058eb6d12.tar.bz2
linux-78347cdb89065f9d40ea28596ef2bd8058eb6d12.zip
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>
Diffstat (limited to 'drivers/cpufreq/cpufreq_ondemand.c')
0 files changed, 0 insertions, 0 deletions