From: Dave Jones Date: Thu, 23 Apr 2009 17:36:12 +0000 (-0400) Subject: [CPUFREQ] powernow-k7 build fix when ACPI=n X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d38e73e8dad454a5916f446b0d3523c1161ae95a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [CPUFREQ] powernow-k7 build fix when ACPI=n arch/x86/kernel/cpu/cpufreq/powernow-k7.c:172: warning: 'invalidate_entry' defined but not used Reported-by: Toralf Förster Signed-off-by: Dave Jones --- diff --git a/arch/x86/kernel/cpu/cpufreq/powernow-k7.c b/arch/x86/kernel/cpu/cpufreq/powernow-k7.c index 3c28ccd49742..a8363e5be4ef 100644 --- a/arch/x86/kernel/cpu/cpufreq/powernow-k7.c +++ b/arch/x86/kernel/cpu/cpufreq/powernow-k7.c @@ -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) {