Skip to content

Commit

Permalink
[PATCH] cpufreq_ondemand: Warn if it cannot run due to too long trans…
Browse files Browse the repository at this point in the history
…ition latency

Display a warning if the ondemand governor can not be selected due to a
transition latency of the cpufreq driver which is too long.

Signed-off-by: Eric Piel <eric.piel@tremplin-utc.net>
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Eric Piel authored and Dominik Brodowski committed Mar 26, 2006
1 parent a159b82 commit ff8c288
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/cpufreq/cpufreq_ondemand.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,11 @@ static int cpufreq_governor_dbs(struct cpufreq_policy *policy,
return -EINVAL;

if (policy->cpuinfo.transition_latency >
(TRANSITION_LATENCY_LIMIT * 1000))
(TRANSITION_LATENCY_LIMIT * 1000)) {
printk(KERN_WARNING "ondemand governor failed to load "
"due to too long transition latency\n");
return -EINVAL;
}
if (this_dbs_info->enable) /* Already enabled */
break;

Expand Down

0 comments on commit ff8c288

Please sign in to comment.