Chameleon

Chameleon Commit Details

Date:2010-12-14 19:26:29 (13 years 3 months ago)
Author:Azimutz
Commit:667
Parents: 666
Message:Trunking acpi_patcher.c, revs 630 and 654... no more dirty stuff :P
Changes:
M/branches/azimutz/Chazi/i386/libsaio/acpi_patcher.c

File differences

branches/azimutz/Chazi/i386/libsaio/acpi_patcher.c
543543
544544
545545
546
546
547547
548
549
548550
549
550
551
551552
552553
553554
case CPU_MODEL_WESTMERE:
case CPU_MODEL_WESTMERE_EX:
{
// Is it allways the maximum multiplier?
// Seems it always contains maximum multiplier value (with turbo, that's we need)...
maximum.Control = rdmsr64(MSR_IA32_PERF_STATUS) & 0xff;
minimum.Control = (rdmsr64(MSR_PLATFORM_INFO) >> 40) & 0xff;
// fix me: dirty method to get lowest multiplier... Hardcoded value!
minimum.Control = 0x09;
verbose("P-States: min 0x%x, max 0x%x\n", minimum.Control, maximum.Control);
// Sanity check
if (maximum.Control < minimum.Control)

Archive Download the corresponding diff file

Revision: 667