From: Mark Langsdorf Date: Fri, 3 Aug 2007 19:09:05 +0000 (-0500) Subject: [CPUFREQ] Support different families in fid/did to frequency conversion X-Git-Tag: v2.6.24-rc1~1396^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=562d94d98f7032bdc4a99d9124a78a543dbea225;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [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: Mark Langsdorf Signed-off-by: Joachim Deguara Signed-off-by: Dave Jones --- diff --git a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c index f2a65a9..b273b69 100644 --- a/arch/i386/kernel/cpu/cpufreq/powernow-k8.c +++ b/arch/i386/kernel/cpu/cpufreq/powernow-k8.c @@ -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)