Skip to content

Commit

Permalink
x86: remove some ifdefs from native_init_IRQ()
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 ac3048d commit abdb5a5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions arch/x86/kernel/irqinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ static void __init apic_intr_init(void)
#endif
}

#ifdef CONFIG_X86_32
/**
* x86_quirk_pre_intr_init - initialisation prior to setting up interrupt vectors
*
Expand All @@ -217,24 +216,21 @@ static void __init apic_intr_init(void)
**/
static void __init x86_quirk_pre_intr_init(void)
{
#ifdef CONFIG_X86_32
if (x86_quirks->arch_pre_intr_init) {
if (x86_quirks->arch_pre_intr_init())
return;
}
#endif
init_ISA_irqs();
}
#endif

void __init native_init_IRQ(void)
{
int i;

#ifdef CONFIG_X86_32
/* Execute any quirks before the call gates are initialised: */
x86_quirk_pre_intr_init();
#else
init_ISA_irqs();
#endif

/*
* Cover the whole vector space, no vector can escape
Expand Down

0 comments on commit abdb5a5

Please sign in to comment.