[CPUFREQ] powernow-k7 build fix when ACPI=n
authorDave Jones <davej@redhat.com>
Thu, 23 Apr 2009 17:36:12 +0000 (13:36 -0400)
committerDave Jones <davej@redhat.com>
Tue, 26 May 2009 16:04:50 +0000 (12:04 -0400)
arch/x86/kernel/cpu/cpufreq/powernow-k7.c:172: warning: 'invalidate_entry' defined but not used

Reported-by: Toralf Förster <toralf.foerster@gmx.de>
Signed-off-by: Dave Jones <davej@redhat.com>
arch/x86/kernel/cpu/cpufreq/powernow-k7.c

index 3c28ccd..a8363e5 100644 (file)
@@ -168,10 +168,12 @@ static int check_powernow(void)
        return 1;
 }
 
+#ifdef CONFIG_X86_POWERNOW_K7_ACPI
 static void invalidate_entry(unsigned int entry)
 {
        powernow_table[entry].frequency = CPUFREQ_ENTRY_INVALID;
 }
+#endif
 
 static int get_ranges(unsigned char *pst)
 {