powerpc: Fix cpufreq drivers after cpufreq core changes
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / powerpc / platforms / powermac / cpufreq_64.c
index 4dfb4bc242b5cc2c360530085a36681506a41d10..beb38333b6d2b9fc22e3acd9559cb4112eb5cb2b 100644 (file)
@@ -362,7 +362,7 @@ static int g5_cpufreq_cpu_init(struct cpufreq_policy *policy)
        /* secondary CPUs are tied to the primary one by the
         * cpufreq core if in the secondary policy we tell it that
         * it actually must be one policy together with all others. */
-       policy->cpus = cpu_online_map;
+       cpumask_copy(policy->cpus, &cpu_online_map);
        cpufreq_frequency_table_get_attr(g5_cpu_freqs, policy->cpu);
 
        return cpufreq_frequency_table_cpuinfo(policy,