|
@@ -225,8 +225,12 @@ acpi_cpufreq_target (
|
|
|
freqs.old = data->freq_table[cur_state].frequency;
|
|
|
freqs.new = data->freq_table[next_state].frequency;
|
|
|
|
|
|
+#ifdef CONFIG_HOTPLUG_CPU
|
|
|
/* cpufreq holds the hotplug lock, so we are safe from here on */
|
|
|
cpus_and(online_policy_cpus, cpu_online_map, policy->cpus);
|
|
|
+#else
|
|
|
+ online_policy_cpus = policy->cpus;
|
|
|
+#endif
|
|
|
|
|
|
for_each_cpu_mask(j, online_policy_cpus) {
|
|
|
freqs.cpu = j;
|