summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2012-09-11 02:41:54 +0800
committerAnson Huang <b20788@freescale.com>2012-09-11 18:27:15 +0800
commit180cd76c012bf87fb97e9a9d3ee2d655f1b7f4b6 (patch)
treef103595e43665623ba5e9bc88ad7d524f8fe363c
parent065460d901c686577639ec7e535e74a8c6df3d42 (diff)
ENGR00223450 [MX6]Fix secondary cores BogoMIPs error
After doing some suspend/resuem test, secondary cores BogoMIPs will be wrong, the root cause is that when cpufreq is changed, we only update the online cpus' loops_per_jiffy, and when secondary cores back to online, we skip the loops_per_jiffy calibration. During suspend/resume, the cpufreq can be changed during disabling/enabling secondary cores, which will make secondary cores loops_per_jiffy wrong, so here we need to update all possible cpus' loops_per_jiffy when cpufreq is changed. Signed-off-by: Anson Huang <b20788@freescale.com>
-rwxr-xr-xarch/arm/plat-mxc/cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/cpufreq.c b/arch/arm/plat-mxc/cpufreq.c
index 7a06aaec02e7..e7278d9501a5 100755
--- a/arch/arm/plat-mxc/cpufreq.c
+++ b/arch/arm/plat-mxc/cpufreq.c
@@ -219,7 +219,7 @@ static int mxc_set_target(struct cpufreq_policy *policy,
* So update it for all CPUs.
*/
- for_each_cpu(i, policy->cpus)
+ for_each_possible_cpu(i)
per_cpu(cpu_data, i).loops_per_jiffy =
cpufreq_scale(per_cpu(cpu_data, i).loops_per_jiffy,
freqs.old, freqs.new);