1.1 --- a/Hardware/CPU/AMD10CPU.cs Tue Feb 23 19:45:40 2010 +0000
1.2 +++ b/Hardware/CPU/AMD10CPU.cs Sat Feb 27 15:55:17 2010 +0000
1.3 @@ -86,8 +86,10 @@
1.4
1.5 // AMD family 10h processors support only one temperature sensor
1.6 coreTemperature = new Sensor(
1.7 - "Core" + (coreCount > 1 ? " #1 - #" + coreCount : ""), 0,
1.8 - SensorType.Temperature, this);
1.9 + "Core" + (coreCount > 1 ? " #1 - #" + coreCount : ""), 0, null,
1.10 + SensorType.Temperature, this, new ParameterDescription[] {
1.11 + new ParameterDescription("Offset", "Temperature offset.", 0)
1.12 + });
1.13
1.14 pciAddress = WinRing0.FindPciDeviceById(PCI_AMD_VENDOR_ID,
1.15 PCI_AMD_10H_MISCELLANEOUS_DEVICE_ID, 0);
1.16 @@ -119,7 +121,8 @@
1.17 uint value;
1.18 if (WinRing0.ReadPciConfigDwordEx(pciAddress,
1.19 REPORTED_TEMPERATURE_CONTROL_REGISTER, out value)) {
1.20 - coreTemperature.Value = ((value >> 21) & 0x7FF) / 8.0f;
1.21 + coreTemperature.Value = ((value >> 21) & 0x7FF) / 8.0f +
1.22 + coreTemperature.Parameters[0].Value;
1.23 ActivateSensor(coreTemperature);
1.24 } else {
1.25 DeactivateSensor(coreTemperature);