Commit 652af67e authored by Dave Jones's avatar Dave Jones Committed by Dave Jones

[CPUFREQ] Explicitly disable scaling we don't need in powernow-k7

The VIDC/FIDC controls could have been left at 1 from a previous call to
one of the scaling routines. Make sure we set them back to 0 to avoid
writing garbage into the scaling registers.
parent 2b2f4ded
...@@ -196,6 +196,7 @@ static void change_FID(int fid) ...@@ -196,6 +196,7 @@ static void change_FID(int fid)
if (fidvidctl.bits.FID != fid) { if (fidvidctl.bits.FID != fid) {
fidvidctl.bits.SGTC = latency; fidvidctl.bits.SGTC = latency;
fidvidctl.bits.FID = fid; fidvidctl.bits.FID = fid;
fidvidctl.bits.VIDC = 0;
fidvidctl.bits.FIDC = 1; fidvidctl.bits.FIDC = 1;
wrmsrl (MSR_K7_FID_VID_CTL, fidvidctl.val); wrmsrl (MSR_K7_FID_VID_CTL, fidvidctl.val);
} }
...@@ -210,6 +211,7 @@ static void change_VID(int vid) ...@@ -210,6 +211,7 @@ static void change_VID(int vid)
if (fidvidctl.bits.VID != vid) { if (fidvidctl.bits.VID != vid) {
fidvidctl.bits.SGTC = latency; fidvidctl.bits.SGTC = latency;
fidvidctl.bits.VID = vid; fidvidctl.bits.VID = vid;
fidvidctl.bits.FIDC = 0;
fidvidctl.bits.VIDC = 1; fidvidctl.bits.VIDC = 1;
wrmsrl (MSR_K7_FID_VID_CTL, fidvidctl.val); wrmsrl (MSR_K7_FID_VID_CTL, fidvidctl.val);
} }
......
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