Fixed the Intel CPU package temperature sensor MSR.
authormoel.mich
Sun, 24 Jul 2011 22:16:28 +0000
changeset 315158ec57434e8
parent 314 d19c6b4d625e
child 316 82bfd8af42a7
Fixed the Intel CPU package temperature sensor MSR.
Hardware/CPU/IntelCPU.cs
     1.1 --- a/Hardware/CPU/IntelCPU.cs	Sun Jul 24 22:12:01 2011 +0000
     1.2 +++ b/Hardware/CPU/IntelCPU.cs	Sun Jul 24 22:16:28 2011 +0000
     1.3 @@ -293,7 +293,7 @@
     1.4        if (packageTemperature != null) {
     1.5          uint eax, edx;
     1.6          if (Ring0.RdmsrTx(
     1.7 -          IA32_THERM_STATUS_MSR, out eax, out edx,
     1.8 +          IA32_PACKAGE_THERM_STATUS, out eax, out edx,
     1.9              1UL << cpuid[0][0].Thread)) {
    1.10            // get the dist from tjMax from bits 22:16
    1.11            float deltaT = ((eax & 0x007F0000) >> 16);