diff options
author | Matthew Garrett <mjg@redhat.com> | 2012-02-01 10:26:54 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-30 02:38:31 -0400 |
commit | 9bcb8118965ab4631a65ee0726e6518f75cda6c5 (patch) | |
tree | a1e6d0faea5a6ad75333ca9f2a7ff239405e786b /drivers/acpi/thermal.c | |
parent | f1f0e2ac596f531c15b7b09ebeb8cfd011fffbd2 (diff) |
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>
Diffstat (limited to 'drivers/acpi/thermal.c')
-rw-r--r-- | drivers/acpi/thermal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index 48fbc647b178..7dbebea1ec31 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c | |||
@@ -941,13 +941,13 @@ static int acpi_thermal_get_info(struct acpi_thermal *tz) | |||
941 | if (!tz) | 941 | if (!tz) |
942 | return -EINVAL; | 942 | return -EINVAL; |
943 | 943 | ||
944 | /* Get temperature [_TMP] (required) */ | 944 | /* Get trip points [_CRT, _PSV, etc.] (required) */ |
945 | result = acpi_thermal_get_temperature(tz); | 945 | result = acpi_thermal_get_trip_points(tz); |
946 | if (result) | 946 | if (result) |
947 | return result; | 947 | return result; |
948 | 948 | ||
949 | /* Get trip points [_CRT, _PSV, etc.] (required) */ | 949 | /* Get temperature [_TMP] (required) */ |
950 | result = acpi_thermal_get_trip_points(tz); | 950 | result = acpi_thermal_get_temperature(tz); |
951 | if (result) | 951 | if (result) |
952 | return result; | 952 | return result; |
953 | 953 | ||