]> err.no Git - linux-2.6/commitdiff
ACPI: UP build fix for bugzilla-5737
authorAndrew Morton <akpm@osdl.org>
Tue, 28 Mar 2006 22:03:00 +0000 (17:03 -0500)
committerLen Brown <len.brown@intel.com>
Sun, 2 Apr 2006 02:13:15 +0000 (21:13 -0500)
cpu_online_map doesn't exist if !CONFIG_SMP.

Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
arch/i386/kernel/cpu/cpufreq/speedstep-centrino.c

index 4c7c6e089e87b7b7d8ff374be512385c863f3cac..11da3ca237e3269a83e09beddea7b91346770cae 100644 (file)
@@ -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;
index 37dee862f0d37f8c6549998472b1065c2ec8b726..9a65993396edfba43d032d70d4dff20a0b51e393 100644 (file)
@@ -654,8 +654,12 @@ static int centrino_target (struct cpufreq_policy *policy,
                return -EINVAL;
        }
 
+#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
 
        saved_mask = current->cpus_allowed;
        first_cpu = 1;