]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/cpufreq/cpufreq_ondemand.c
[CPUFREQ] ondemand,conservative governor store the idle ticks for all cpus
[mv-sheeva.git] / drivers / cpufreq / cpufreq_ondemand.c
index 26cf54b11ba6278ac565d814825118a928819e77..f239545ac1b84df92b4e0fa04d5078726d68ea08 100644 (file)
@@ -355,7 +355,13 @@ static void dbs_check_cpu(int cpu)
 
        if (idle_ticks < up_idle_ticks) {
                down_skip[cpu] = 0;
-               this_dbs_info->prev_cpu_idle_down = total_idle_ticks;
+               for_each_cpu_mask(j, policy->cpus) {
+                       struct cpu_dbs_info_s *j_dbs_info;
+
+                       j_dbs_info = &per_cpu(cpu_dbs_info, j);
+                       j_dbs_info->prev_cpu_idle_down = 
+                                       j_dbs_info->prev_cpu_idle_up;
+               }
                /* if we are already at full speed then break out early */
                if (policy->cur == policy->max)
                        return;