summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-08-20 05:50:31 +0200
committerIngo Molnar <mingo@elte.hu>2008-10-16 16:52:08 +0200
commita84488c213a8cfc29200344a6fb6357d48c8ed85 (patch)
tree71e5392cdc8d837a3e17ce7da7cccebad3fdf82c
parentx86: use dyn_array in io_apic_xx.c (diff)
downloadlinux-a84488c213a8cfc29200344a6fb6357d48c8ed85.tar.xz
linux-a84488c213a8cfc29200344a6fb6357d48c8ed85.zip
irq: sparse irqs, fix #3
fix non-APIC UP build: arch/x86/kernel/built-in.o: In function `setup_arch': : undefined reference to `pin_map_size' arch/x86/kernel/built-in.o: In function `setup_arch': : undefined reference to `first_free_entry' Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r--arch/x86/kernel/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 558ec26b08e2..02e3a6697977 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -1074,8 +1074,10 @@ void __init setup_arch(char **cmdline_p)
nr_irqs = 32 * nr_cpu_ids + 224;
init_cpu_to_node();
#endif
+#ifdef CONFIG_X86_IO_APIC
pin_map_size = nr_irqs * 2;
first_free_entry = nr_irqs;
+#endif
init_apic_mappings();
ioapic_init_mappings();