mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-02 15:25:22 +00:00
Fixed the Intel CPU package temperature sensor MSR.
This commit is contained in:
@@ -293,7 +293,7 @@ namespace OpenHardwareMonitor.Hardware.CPU {
|
|||||||
if (packageTemperature != null) {
|
if (packageTemperature != null) {
|
||||||
uint eax, edx;
|
uint eax, edx;
|
||||||
if (Ring0.RdmsrTx(
|
if (Ring0.RdmsrTx(
|
||||||
IA32_THERM_STATUS_MSR, out eax, out edx,
|
IA32_PACKAGE_THERM_STATUS, out eax, out edx,
|
||||||
1UL << cpuid[0][0].Thread)) {
|
1UL << cpuid[0][0].Thread)) {
|
||||||
// get the dist from tjMax from bits 22:16
|
// get the dist from tjMax from bits 22:16
|
||||||
float deltaT = ((eax & 0x007F0000) >> 16);
|
float deltaT = ((eax & 0x007F0000) >> 16);
|
||||||
|
Reference in New Issue
Block a user