diff options
-rw-r--r-- | drivers/cpufreq/arm_big_little.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/cpufreq/arm_big_little.c b/drivers/cpufreq/arm_big_little.c index 3d8707848035..bad2ed317ba2 100644 --- a/drivers/cpufreq/arm_big_little.c +++ b/drivers/cpufreq/arm_big_little.c | |||
@@ -446,9 +446,12 @@ static int bL_cpufreq_init(struct cpufreq_policy *policy) | |||
446 | } | 446 | } |
447 | 447 | ||
448 | if (cur_cluster < MAX_CLUSTERS) { | 448 | if (cur_cluster < MAX_CLUSTERS) { |
449 | int cpu; | ||
450 | |||
449 | cpumask_copy(policy->cpus, topology_core_cpumask(policy->cpu)); | 451 | cpumask_copy(policy->cpus, topology_core_cpumask(policy->cpu)); |
450 | 452 | ||
451 | per_cpu(physical_cluster, policy->cpu) = cur_cluster; | 453 | for_each_cpu(cpu, policy->cpus) |
454 | per_cpu(physical_cluster, cpu) = cur_cluster; | ||
452 | } else { | 455 | } else { |
453 | /* Assumption: during init, we are always running on A15 */ | 456 | /* Assumption: during init, we are always running on A15 */ |
454 | per_cpu(physical_cluster, policy->cpu) = A15_CLUSTER; | 457 | per_cpu(physical_cluster, policy->cpu) = A15_CLUSTER; |