Skip to content

Commit

Permalink
cpufreq: ondemand: fix wrong delay sampling rate
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Baltieri authored and Rafael J. Wysocki committed Nov 23, 2012
1 parent 5542721 commit d3c31a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/cpufreq/cpufreq_ondemand.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ static void od_dbs_timer(struct work_struct *work)
dbs_info->sample_type = OD_SUB_SAMPLE;
delay = dbs_info->freq_hi_jiffies;
} else {
delay = delay_for_sampling_rate(dbs_info->rate_mult);
delay = delay_for_sampling_rate(od_tuners.sampling_rate
* dbs_info->rate_mult);
}
}

Expand Down

0 comments on commit d3c31a7

Please sign in to comment.