Skip to content

Commit

Permalink
[CPUFREQ] Support different families in fid/did to frequency conversion
Browse files Browse the repository at this point in the history
The equation to find the frequency given the fid and did is family dependant.

Acked-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Joachim Deguara <joachim.deguara@amd.com>
Signed-off-by: Dave Jones <davej@redhat.com>
  • Loading branch information
Mark Langsdorf authored and Dave Jones committed Oct 4, 2007
1 parent 55395ae commit 562d94d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/i386/kernel/cpu/cpufreq/powernow-k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ static u32 find_khz_freq_from_fid(u32 fid)
/* Return a frequency in MHz, given an input fid and did */
static u32 find_freq_from_fiddid(u32 fid, u32 did)
{
return 100 * (fid + 0x10) >> did;
if (current_cpu_data.x86 == 0x10)
return 100 * (fid + 0x10) >> did;
else
return 100 * (fid + 0x8) >> did;
}

static u32 find_khz_freq_from_fiddid(u32 fid, u32 did)
Expand Down

0 comments on commit 562d94d

Please sign in to comment.