提交 9bcb8118 编写于 作者: M Matthew Garrett 提交者: Len Brown

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: NMatthew Garrett <mjg@redhat.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 f1f0e2ac
...@@ -941,13 +941,13 @@ static int acpi_thermal_get_info(struct acpi_thermal *tz) ...@@ -941,13 +941,13 @@ static int acpi_thermal_get_info(struct acpi_thermal *tz)
if (!tz) if (!tz)
return -EINVAL; return -EINVAL;
/* Get temperature [_TMP] (required) */ /* Get trip points [_CRT, _PSV, etc.] (required) */
result = acpi_thermal_get_temperature(tz); result = acpi_thermal_get_trip_points(tz);
if (result) if (result)
return result; return result;
/* Get trip points [_CRT, _PSV, etc.] (required) */ /* Get temperature [_TMP] (required) */
result = acpi_thermal_get_trip_points(tz); result = acpi_thermal_get_temperature(tz);
if (result) if (result)
return result; return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册