Commit 53d36e36 authored by Dave Jones's avatar Dave Jones

[CPUFREQ] powernow-k8: handle invalid initial frequency/voltage pairs correctly

From: Paul Devriendt

patch for powernow-k8 problem (Mobile Sempron 2800+, Acer Aspire 1362 )

If the initial frequency/voltage pair are not valid in the frequency table,
the first requested transition is to make them valid. Fix the code doing so.
Signed-off-by: default avatarDominik Brodowski <linux@brodo.de>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent 6fda1de2
......@@ -286,7 +286,7 @@ static int core_voltage_pre_transition(struct powernow_k8_data *data, u32 reqvid
return 1;
}
while (rvosteps > 0) {
while ((rvosteps > 0) && ((data->rvo + data->currvid) > reqvid)) {
if (data->currvid == 0) {
rvosteps = 0;
} else {
......
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