x86: cleanup, remove extra ifdef
authorYinghai Lu <yhlu.kernel@gmail.com>
Fri, 26 Sep 2008 05:22:12 +0000 (22:22 -0700)
committerIngo Molnar <mingo@elte.hu>
Mon, 13 Oct 2008 08:22:44 +0000 (10:22 +0200)
also change two functions to static.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/irqinit_64.c

index b01d9549b3d4d7d6e0f827f354885711aa6ebc6c..5b5be9d43c2a865fdcbe1ac0f689e750f5e6f5de 100644 (file)
@@ -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
        /*
@@ -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);