CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2014/07/11 20:44:49

Modified files:
        sys/dev/acpi   : acpitz.c 

Log message:
Preread the thermal zone trip points before reading the temperature value.
This is needed on some (specifically HP) machines to avoid _TMP reporting
a bogus temperature value (temperatures > 4,000 degC), which causes acpitz
to automatically shut down the machine because it thinks it's floating in
lava.

Also ensure that we can accept a temperature reading of 0 degC - we were
previously interpreting 0 degC as "bad temperature data" and not attaching
the thermal zone device. Some machines have ephemeral temperature sensors
that come and go (eg in docks) and we want to make sure we attach those
even if they report back 0 degC on initialization. Fixes some machines
with "failed to read _TMP" errors.

ok deraadt, tested and verified by a few folks on tech@ who were seeing
the thermal zone shutdown isue.

Reply via email to