Commit a85e2e70 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] Fix FSB calculation in powernow-k7

use the maximum fid instead of the current fid.

From: Bruno Ducrot
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent da9888d1
......@@ -565,7 +565,7 @@ static int __init powernow_cpu_init (struct cpufreq_policy *policy)
rdmsrl (MSR_K7_FID_VID_STATUS, fidvidstatus.val);
/* A K7 with powernow technology is set to max frequency by BIOS */
fsb = (10 * cpu_khz) / fid_codes[fidvidstatus.bits.CFID];
fsb = (10 * cpu_khz) / fid_codes[fidvidstatus.bits.MFID];
if (!fsb) {
printk(KERN_WARNING PFX "can not determine bus frequency\n");
return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment