Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: ondemand: fix wrong delay sampling rate

Restore the correct delay value for ondemand's od_dbs_timer, as it was
changed erroneously in commit 83f0e55 (cpufreq: governors: remove
redundant code).

Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Fabio Baltieri and committed by
Rafael J. Wysocki
d3c31a77 5542721a

+2 -1
+2 -1
drivers/cpufreq/cpufreq_ondemand.c
··· 234 234 dbs_info->sample_type = OD_SUB_SAMPLE; 235 235 delay = dbs_info->freq_hi_jiffies; 236 236 } else { 237 - delay = delay_for_sampling_rate(dbs_info->rate_mult); 237 + delay = delay_for_sampling_rate(od_tuners.sampling_rate 238 + * dbs_info->rate_mult); 238 239 } 239 240 } 240 241