Skip to content

Commit

Permalink
x86: cleanup, remove extra ifdef
Browse files Browse the repository at this point in the history
also change two functions to static.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Oct 13, 2008
1 parent 3c1326f commit 9b658f6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/x86/kernel/irqinit_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void __init init_ISA_irqs(void)

void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));

void __init smp_intr_init(void)
static void __init smp_intr_init(void)
{
#ifdef CONFIG_SMP
/*
Expand Down Expand Up @@ -195,11 +195,9 @@ void __init smp_intr_init(void)
#endif
}

void __init apic_intr_init(void)
static void __init apic_intr_init(void)
{
#ifdef CONFIG_SMP
smp_intr_init();
#endif

alloc_intr_gate(THERMAL_APIC_VECTOR, thermal_interrupt);
alloc_intr_gate(THRESHOLD_APIC_VECTOR, threshold_interrupt);
Expand Down

0 comments on commit 9b658f6

Please sign in to comment.