]> git.neil.brown.name Git - history.git/commitdiff
Avoid a compile-time warning in bluesmoke.c
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 14 Apr 2002 15:31:09 +0000 (10:31 -0500)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Sun, 14 Apr 2002 15:31:09 +0000 (10:31 -0500)
(intel_thermal_interrupt() defined but not used)

arch/i386/kernel/bluesmoke.c

index ea9fc1266c7918822d53d3a4dfbf8363fbe25d64..c1ab98c51944a8c0f3da7d1f13aff2b7fd4d2240 100644 (file)
@@ -33,9 +33,9 @@ static void inline flush_all (void)
  *     P4/Xeon Thermal transition interrupt handler
  */
 
+#ifdef CONFIG_X86_LOCAL_APIC
 static void intel_thermal_interrupt(struct pt_regs *regs)
 {
-#ifdef CONFIG_X86_LOCAL_APIC
        u32 l, h;
        unsigned int cpu = smp_processor_id();
 
@@ -48,8 +48,8 @@ static void intel_thermal_interrupt(struct pt_regs *regs)
        } else {
                printk(KERN_INFO "CPU#%d: Temperature/speed normal\n", cpu);
        }
-#endif
 }
+#endif
 
 static void unexpected_thermal_interrupt(struct pt_regs *regs)
 {