aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-08-19 23:50:52 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-16 10:52:58 -0400
commit9d6a4d0823b3b8e29156f5e698b5a68687afad32 (patch)
treeb3a06b8392f8b451625ad64ad7d51b60456fb388 /arch/x86/kernel/setup.c
parent8f09cd20a24c5f13c571bc73ddcd47be0af3b70f (diff)
x86: probe nr_irqs even only mptable is used
for !CONFIG_HAVE_SPARSE_IRQ fix: In file included from arch/x86/kernel/early-quirks.c:18: include/asm/io_apic.h: In function 'probe_nr_irqs': include/asm/io_apic.h:209: error: 'NR_IRQS' undeclared (first use in this function) include/asm/io_apic.h:209: error: (Each undeclared identifier is reported only once include/asm/io_apic.h:209: error: for each function it appears in.) v2: fix by Ingo Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index d90c659b70e9..61335306696a 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -1069,15 +1069,15 @@ void __init setup_arch(char **cmdline_p)
1069 prefill_possible_map(); 1069 prefill_possible_map();
1070 1070
1071#ifdef CONFIG_X86_64 1071#ifdef CONFIG_X86_64
1072 /* need to wait for nr_cpu_ids settle down */
1073 if (nr_irqs == NR_IRQS)
1074 nr_irqs = 32 * nr_cpu_ids + 224;
1075 init_cpu_to_node(); 1072 init_cpu_to_node();
1076#endif 1073#endif
1077 1074
1078 init_apic_mappings(); 1075 init_apic_mappings();
1079 ioapic_init_mappings(); 1076 ioapic_init_mappings();
1080 1077
1078 /* need to wait for io_apic is mapped */
1079 nr_irqs = probe_nr_irqs();
1080
1081 kvm_guest_init(); 1081 kvm_guest_init();
1082 1082
1083 e820_reserve_resources(); 1083 e820_reserve_resources();