diff options
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index b2ebcba729d9..da99eef1f0dc 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -1087,9 +1087,7 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus) | |||
1087 | set_cpu_sibling_map(0); | 1087 | set_cpu_sibling_map(0); |
1088 | 1088 | ||
1089 | enable_IR_x2apic(); | 1089 | enable_IR_x2apic(); |
1090 | #ifdef CONFIG_X86_64 | ||
1091 | default_setup_apic_routing(); | 1090 | default_setup_apic_routing(); |
1092 | #endif | ||
1093 | 1091 | ||
1094 | if (smp_sanity_check(max_cpus) < 0) { | 1092 | if (smp_sanity_check(max_cpus) < 0) { |
1095 | printk(KERN_INFO "SMP disabled\n"); | 1093 | printk(KERN_INFO "SMP disabled\n"); |
@@ -1217,11 +1215,12 @@ __init void prefill_possible_map(void) | |||
1217 | 1215 | ||
1218 | total_cpus = max_t(int, possible, num_processors + disabled_cpus); | 1216 | total_cpus = max_t(int, possible, num_processors + disabled_cpus); |
1219 | 1217 | ||
1220 | if (possible > CONFIG_NR_CPUS) { | 1218 | /* nr_cpu_ids could be reduced via nr_cpus= */ |
1219 | if (possible > nr_cpu_ids) { | ||
1221 | printk(KERN_WARNING | 1220 | printk(KERN_WARNING |
1222 | "%d Processors exceeds NR_CPUS limit of %d\n", | 1221 | "%d Processors exceeds NR_CPUS limit of %d\n", |
1223 | possible, CONFIG_NR_CPUS); | 1222 | possible, nr_cpu_ids); |
1224 | possible = CONFIG_NR_CPUS; | 1223 | possible = nr_cpu_ids; |
1225 | } | 1224 | } |
1226 | 1225 | ||
1227 | printk(KERN_INFO "SMP: Allowing %d CPUs, %d hotplug CPUs\n", | 1226 | printk(KERN_INFO "SMP: Allowing %d CPUs, %d hotplug CPUs\n", |