Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4985cd0a authored by Henrique de Moraes Holschuh's avatar Henrique de Moraes Holschuh Committed by Len Brown
Browse files

ACPI: thinkpad-acpi: do not arm fan watchdog if it would not work



Do not enable/rearm the fan control safety watchdog if we would not be able
to do anything to the fan anyway.

Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent ecf2a80a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3197,6 +3197,9 @@ static void fan_watchdog_reset(void)
{
	static int fan_watchdog_active = 0;

	if (fan_control_access_mode == TPACPI_FAN_WR_NONE)
		return;

	if (fan_watchdog_active)
		cancel_delayed_work(&fan_watchdog_task);