mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 09:37:08 -04:00
#PROCHOT assertion is sticky after reading the MSR (accordingly with
Intel manuals) it must be cleared by writing a 0. Fix that. Sponsored by: Sandvine Incorporated Reported by: rstone Reviewed by: delphij, emaste, rstone Approved by: re (kib) MFC after: 1 week
This commit is contained in:
parent
c61f25617c
commit
c839b5bbf7
1 changed files with 4 additions and 1 deletions
|
|
@ -384,6 +384,7 @@ coretemp_get_val_sysctl(SYSCTL_HANDLER_ARGS)
|
|||
}
|
||||
|
||||
if (msr & THERM_STATUS_LOG) {
|
||||
coretemp_clear_thermal_msr(device_get_unit(dev));
|
||||
sc->sc_throttle_log = 1;
|
||||
|
||||
/*
|
||||
|
|
@ -424,8 +425,10 @@ coretemp_throttle_log_sysctl(SYSCTL_HANDLER_ARGS)
|
|||
msr = coretemp_get_thermal_msr(device_get_unit(dev));
|
||||
sc = device_get_softc(dev);
|
||||
|
||||
if (msr & THERM_STATUS_LOG)
|
||||
if (msr & THERM_STATUS_LOG) {
|
||||
coretemp_clear_thermal_msr(device_get_unit(dev));
|
||||
sc->sc_throttle_log = 1;
|
||||
}
|
||||
|
||||
val = sc->sc_throttle_log;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue