diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-02-22 19:20:34 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-02-22 19:20:34 -0500 |
commit | d02e30c31c57683a66ed68a1bcff900ca78f6d56 (patch) | |
tree | c3ce99a00061bcc1199b50fa838147d876c56717 /arch/x86/kernel/smpboot.c | |
parent | 0fdc7a8022c3eaff6b5ee27ffb9e913e5e58d8e9 (diff) | |
parent | aef55d4922e62a0d887e60d87319f3718aec6ced (diff) |
Merge branch 'x86/irq' into x86/apic
Merge reason:
Conflicts in arch/x86/kernel/apic/io_apic.c
Resolved Conflicts:
arch/x86/kernel/apic/io_apic.c
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
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", |