]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ACPI: Evaluate thermal trip points before reading temperature
authorMatthew Garrett <mjg@redhat.com>
Wed, 1 Feb 2012 15:26:54 +0000 (10:26 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 30 Mar 2012 06:38:31 +0000 (02:38 -0400)
commit9bcb8118965ab4631a65ee0726e6518f75cda6c5
treea1e6d0faea5a6ad75333ca9f2a7ff239405e786b
parentf1f0e2ac596f531c15b7b09ebeb8cfd011fffbd2
ACPI: Evaluate thermal trip points before reading temperature

An HP laptop (Pavilion G4-1016tx) has the following code in _TMP:

       Store (\_SB.PCI0.LPCB.EC0.RTMP, Local0)
       If (LGreaterEqual (Local0, S4TP))
       {
           Store (One, HTS4)
       }

S4TP is initialised at 0 and not programmed further until either _HOT or
_CRT is called. If we evaluate _TMP before the trip points then HTS4 will
always be set, causing the firmware to generate a message on boot
complaining that the system shut down because of overheating. The simplest
solution is just to reverse the checking of trip points and _TMP in thermal
init.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/thermal.c