]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/kernel/irqinit_64.c
x86: unify init_ISA_irqs() in irqinit_{32,64}.c
[karo-tx-linux.git] / arch / x86 / kernel / irqinit_64.c
index 9e7c57dc79e6fec3c713070bb60db123ebc26b94..61c9a922e80cfb7512bcc69a3e84d4ba1bdeeaf6 100644 (file)
@@ -84,9 +84,14 @@ static void __init init_ISA_irqs(void)
 {
        int i;
 
+#if defined(CONFIG_X86_64) || defined(CONFIG_X86_LOCAL_APIC)
        init_bsp_APIC();
+#endif
        init_8259A(0);
 
+       /*
+        * 16 old-style INTA-cycle interrupts:
+        */
        for (i = 0; i < NR_IRQS_LEGACY; i++) {
                struct irq_desc *desc = irq_to_desc(i);
 
@@ -94,11 +99,8 @@ static void __init init_ISA_irqs(void)
                desc->action = NULL;
                desc->depth = 1;
 
-               /*
-                * 16 old-style INTA-cycle interrupts:
-                */
                set_irq_chip_and_handler_name(i, &i8259A_chip,
-                                                     handle_level_irq, "XT");
+                                             handle_level_irq, "XT");
        }
 }