x86: make the LAPIC / IOAPIC construct switchable with Kconfig
[platform/kernel/u-boot.git] / arch / x86 / cpu / i386 / interrupt.c
index ed8423e..1ea415b 100644 (file)
@@ -264,7 +264,9 @@ int interrupt_init(void)
        i8259_init();
 #endif
 
+#ifdef CONFIG_APIC
        lapic_setup();
+#endif
 
        /* Initialize core interrupt and exception functionality of CPU */
        cpu_init_interrupts();