]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
irq: sparse irqs, fix #3
authorIngo Molnar <mingo@elte.hu>
Wed, 20 Aug 2008 03:50:31 +0000 (20:50 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 16 Oct 2008 14:52:08 +0000 (16:52 +0200)
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>
arch/x86/kernel/setup.c

index 558ec26b08e25bdcb3ce22a3e98dda3262dbde20..02e3a669797738079a22858ea7d2af13b60a248b 100644 (file)
@@ -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();