Skip to content

Commit

Permalink
x86: unify init_ISA_irqs() in irqinit_{32,64}.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pekka Enberg authored and Ingo Molnar committed Apr 10, 2009
1 parent b0096bb commit 598c73d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion arch/x86/kernel/irqinit_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static void __init init_ISA_irqs(void)
{
int i;

#ifdef CONFIG_X86_LOCAL_APIC
#if defined(CONFIG_X86_64) || defined(CONFIG_X86_LOCAL_APIC)
init_bsp_APIC();
#endif
init_8259A(0);
Expand Down
10 changes: 6 additions & 4 deletions arch/x86/kernel/irqinit_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,23 @@ 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);

desc->status = IRQ_DISABLED;
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");
}
}

Expand Down

0 comments on commit 598c73d

Please sign in to comment.