aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/irqinit_64.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2009-04-09 04:52:24 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-10 08:35:55 -0400
commit598c73d250ffb112715aa48fb325d79e255be23b (patch)
treed1cfd0ab73766c2709336f6ef1b574f39d4c5d87 /arch/x86/kernel/irqinit_64.c
parentb0096bb0b640d0a7713618b3472fd0f4adf30a96 (diff)
x86: unify init_ISA_irqs() in irqinit_{32,64}.c
Impact: cleanup Reviewed-by Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/irqinit_64.c')
-rw-r--r--arch/x86/kernel/irqinit_64.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/x86/kernel/irqinit_64.c b/arch/x86/kernel/irqinit_64.c
index 9e7c57dc79e6..61c9a922e80c 100644
--- a/arch/x86/kernel/irqinit_64.c
+++ b/arch/x86/kernel/irqinit_64.c
@@ -84,9 +84,14 @@ static void __init init_ISA_irqs(void)
84{ 84{
85 int i; 85 int i;
86 86
87#if defined(CONFIG_X86_64) || defined(CONFIG_X86_LOCAL_APIC)
87 init_bsp_APIC(); 88 init_bsp_APIC();
89#endif
88 init_8259A(0); 90 init_8259A(0);
89 91
92 /*
93 * 16 old-style INTA-cycle interrupts:
94 */
90 for (i = 0; i < NR_IRQS_LEGACY; i++) { 95 for (i = 0; i < NR_IRQS_LEGACY; i++) {
91 struct irq_desc *desc = irq_to_desc(i); 96 struct irq_desc *desc = irq_to_desc(i);
92 97
@@ -94,11 +99,8 @@ static void __init init_ISA_irqs(void)
94 desc->action = NULL; 99 desc->action = NULL;
95 desc->depth = 1; 100 desc->depth = 1;
96 101
97 /*
98 * 16 old-style INTA-cycle interrupts:
99 */
100 set_irq_chip_and_handler_name(i, &i8259A_chip, 102 set_irq_chip_and_handler_name(i, &i8259A_chip,
101 handle_level_irq, "XT"); 103 handle_level_irq, "XT");
102 } 104 }
103} 105}
104 106