rk30: cpufreq: fix transition_latency for ondemand governor
author黄涛 <huangtao@rock-chips.com>
Wed, 11 Apr 2012 06:12:48 +0000 (14:12 +0800)
committer黄涛 <huangtao@rock-chips.com>
Wed, 11 Apr 2012 06:12:48 +0000 (14:12 +0800)
arch/arm/mach-rk30/cpufreq.c

index e2d8eb3a2319d95fab09a1a8d480128a99186089..a2500ff5f05268c409cacec9e1991577f5218829 100755 (executable)
@@ -246,8 +246,7 @@ static int rk30_cpu_init(struct cpufreq_policy *policy)
        
        policy->cur = rk30_getspeed(0);
 
-       /* FIXME: what's the actual transition time? */
-       policy->cpuinfo.transition_latency = 300 * 1000;
+       policy->cpuinfo.transition_latency = 40 * NSEC_PER_USEC; // make ondemand default sampling_rate to 40000
 
 
        /*