提交 598c73d2 编写于 作者: P Pekka Enberg 提交者: Ingo Molnar

x86: unify init_ISA_irqs() in irqinit_{32,64}.c

Impact: cleanup

Reviewed-by Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: NPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 b0096bb0
...@@ -98,7 +98,7 @@ static void __init init_ISA_irqs(void) ...@@ -98,7 +98,7 @@ static void __init init_ISA_irqs(void)
{ {
int i; int i;
#ifdef CONFIG_X86_LOCAL_APIC #if defined(CONFIG_X86_64) || defined(CONFIG_X86_LOCAL_APIC)
init_bsp_APIC(); init_bsp_APIC();
#endif #endif
init_8259A(0); init_8259A(0);
......
...@@ -84,9 +84,14 @@ static void __init init_ISA_irqs(void) ...@@ -84,9 +84,14 @@ static void __init init_ISA_irqs(void)
{ {
int i; int i;
#if defined(CONFIG_X86_64) || defined(CONFIG_X86_LOCAL_APIC)
init_bsp_APIC(); init_bsp_APIC();
#endif
init_8259A(0); init_8259A(0);
/*
* 16 old-style INTA-cycle interrupts:
*/
for (i = 0; i < NR_IRQS_LEGACY; i++) { for (i = 0; i < NR_IRQS_LEGACY; i++) {
struct irq_desc *desc = irq_to_desc(i); struct irq_desc *desc = irq_to_desc(i);
...@@ -94,9 +99,6 @@ static void __init init_ISA_irqs(void) ...@@ -94,9 +99,6 @@ static void __init init_ISA_irqs(void)
desc->action = NULL; desc->action = NULL;
desc->depth = 1; desc->depth = 1;
/*
* 16 old-style INTA-cycle interrupts:
*/
set_irq_chip_and_handler_name(i, &i8259A_chip, set_irq_chip_and_handler_name(i, &i8259A_chip,
handle_level_irq, "XT"); handle_level_irq, "XT");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册