Skip to content

Commit

Permalink
[CPUFREQ] powernow-k7 build fix when ACPI=n
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Jones committed May 26, 2009
1 parent 4319503 commit d38e73e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/cpu/cpufreq/powernow-k7.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit d38e73e

Please sign in to comment.