提交 d38e73e8 编写于 作者: D Dave Jones

[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: NToralf Förster <toralf.foerster@gmx.de>
Signed-off-by: NDave Jones <davej@redhat.com>
上级 43195037
...@@ -168,10 +168,12 @@ static int check_powernow(void) ...@@ -168,10 +168,12 @@ static int check_powernow(void)
return 1; return 1;
} }
#ifdef CONFIG_X86_POWERNOW_K7_ACPI
static void invalidate_entry(unsigned int entry) static void invalidate_entry(unsigned int entry)
{ {
powernow_table[entry].frequency = CPUFREQ_ENTRY_INVALID; powernow_table[entry].frequency = CPUFREQ_ENTRY_INVALID;
} }
#endif
static int get_ranges(unsigned char *pst) static int get_ranges(unsigned char *pst)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册