Chameleon

Chameleon Commit Details

Date:2011-01-16 20:54:21 (7 years 6 months ago)
Author:valv
Commit:707
Parents: 706
Message:typo fixed!
Changes:
M/branches/valv/i386/libsaio/cpu.c
M/branches/valv/revision

File differences

branches/valv/i386/libsaio/cpu.c
266266
267267
268268
269
269
270270
271271
272272
......
274274
275275
276276
277
278277
279278
280279
......
285284
286285
287286
287
288
288289
289290
290291
......
763764
764765
765766
766
767
767768
768769
769770
......
827828
828829
829830
830
831
831832
832833
833834
max_ratio = (max_ratio * 10);
if (len >= 3) max_ratio = (max_ratio + 5);
verbose("Bus-Ratio: min=%d%s, max=%d%s\n", bus_ratio_min, bus_ratio_max);
verbose("Bus-Ratio: min=%d, max=%s\n", bus_ratio_min, newratio);
// extreme overclockers may love 320 ;)
if ((max_ratio >= min_ratio) && (max_ratio <= 320))
cpuFrequency = (fsbFrequency * max_ratio) / 10;
if (len >= 3) maxdiv = 1;
else maxdiv = 0;
verbose("Sticking with [BCLK: %dMhz, Bus-Ratio: %s]\n", myfsb, newratio);
}
else max_ratio = (bus_ratio_max * 10);
}
//fsbi = fsbFrequency;
if(getIntForKey(kForceFSB, &myfsb, &bootInfo->bootConfig)) goto forcefsb;
else myfsb = fsbFrequency / 1000000;
verbose("Sticking with [BCLK: %dMhz, Bus-Ratio: %s]\n", myfsb, newratio);
break;
case 0xd:// Pentium M, Dothan, 90nm
case 0xe:// Core Duo/Solo, Pentium M DC
if(maxrtio == ((bus_ratio_max * 10) - 5))
{
verbose("multi: max:%d.5, ", (bus_ratio_max - 1));
verbose("multi: max:%d.5, min:", (bus_ratio_max - 1));
maxdiv = 1;
}
else if(maxrtio == ((bus_ratio_max - 1) * 10))
vid = bitfield(msr, 15, 9);
if(i == 0) verbose("P-State %d: Frequency: %d, Multiplier: %d%s, vid: %d\n", i, state[i].freq, fid, maxdiv ? ".5" : "", vid);
else if((state[i].freq > state[i+1].freq) || (state[i].freq < 800)) verbose("P-State %d: Removed!", i);
else if((state[i].freq > state[i-1].freq) || (state[i].freq < 800)) verbose("P-State %d: Removed!\n", i);
else verbose("P-State %d: Frequency: %d, Multiplier: %d, vid: %d\n", i, state[i].freq, fid, vid);
state[i].pstate_id = i;
// valv: zeroed for now
branches/valv/revision
1
1
665:702
665:706

Archive Download the corresponding diff file

Revision: 707