]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] cpufreq_ondemand: Warn if it cannot run due to too long transition latency
authorEric Piel <Eric.Piel@tremplin-utc.net>
Fri, 10 Mar 2006 09:34:16 +0000 (11:34 +0200)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sun, 26 Mar 2006 08:43:06 +0000 (10:43 +0200)
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>
drivers/cpufreq/cpufreq_ondemand.c

index 69aa1db8336cd3eb1064728487d28f171cf5e68f..6430489db6f41fc013a1135defbce14df670e79f 100644 (file)
@@ -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;