Skip to content

Commit

Permalink
[IA64] Dont set NR_CPUS for cpu_possible_map when CPU hotplug is enab…
Browse files Browse the repository at this point in the history
…led.

Do not set cpu_possible_map for NR_CPUS when ACPI_CONFIG_HOTPLUG_CPU is set.

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Ashok Raj authored and Tony Luck committed Feb 14, 2006
1 parent 3037944 commit 69aa234
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/ia64/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ DEFINE_PER_CPU(int, cpu_state);
/* Bitmasks of currently online, and possible CPUs */
cpumask_t cpu_online_map;
EXPORT_SYMBOL(cpu_online_map);
cpumask_t cpu_possible_map;
cpumask_t cpu_possible_map = CPU_MASK_NONE;
EXPORT_SYMBOL(cpu_possible_map);

cpumask_t cpu_core_map[NR_CPUS] __cacheline_aligned;
Expand Down Expand Up @@ -506,9 +506,6 @@ smp_build_cpu_map (void)

for (cpu = 0; cpu < NR_CPUS; cpu++) {
ia64_cpu_to_sapicid[cpu] = -1;
#ifdef CONFIG_HOTPLUG_CPU
cpu_set(cpu, cpu_possible_map);
#endif
}

ia64_cpu_to_sapicid[0] = boot_cpu_id;
Expand Down

0 comments on commit 69aa234

Please sign in to comment.