diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-04-09 11:52:24 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-10 14:35:55 +0200 |
commit | 598c73d250ffb112715aa48fb325d79e255be23b (patch) | |
tree | d1cfd0ab73766c2709336f6ef1b574f39d4c5d87 /arch/x86/kernel/irqinit_64.c | |
parent | b0096bb0b640d0a7713618b3472fd0f4adf30a96 (diff) | |
download | kernel_samsung_smdk4412-598c73d250ffb112715aa48fb325d79e255be23b.zip kernel_samsung_smdk4412-598c73d250ffb112715aa48fb325d79e255be23b.tar.gz kernel_samsung_smdk4412-598c73d250ffb112715aa48fb325d79e255be23b.tar.bz2 |
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.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/x86/kernel/irqinit_64.c b/arch/x86/kernel/irqinit_64.c index 9e7c57d..61c9a92 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) { 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"); } } |