提交 562d94d9 编写于 作者: M Mark Langsdorf 提交者: Dave Jones

[CPUFREQ] Support different families in fid/did to frequency conversion

The equation to find the frequency given the fid and did is family dependant.
Acked-by: NMark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: NJoachim Deguara <joachim.deguara@amd.com>
Signed-off-by: NDave Jones <davej@redhat.com>
上级 55395ae7
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册