aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-08-09 03:08:40 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2025-06-10 08:40:33 -0600
commit1a193456218b45a7cd85a52f734fcb138e7209a4 (patch)
tree402b60f8e733283c398caca7534f50f269ae4e3a
parentv4l2: add loopback driver (diff)
downloadlaptop-kernel-1a193456218b45a7cd85a52f734fcb138e7209a4.tar.xz
laptop-kernel-1a193456218b45a7cd85a52f734fcb138e7209a4.zip
thermal: don't shut off system when melting
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--drivers/thermal/thermal_core.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c
index 17ca5c082643..0fc397f4642b 100644
--- a/drivers/thermal/thermal_core.c
+++ b/drivers/thermal/thermal_core.c
@@ -372,16 +372,7 @@ void thermal_governor_update_tz(struct thermal_zone_device *tz,
static void thermal_zone_device_halt(struct thermal_zone_device *tz,
enum hw_protection_action action)
{
- /*
- * poweroff_delay_ms must be a carefully profiled positive value.
- * Its a must for forced_emergency_poweroff_work to be scheduled.
- */
- int poweroff_delay_ms = CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS;
- const char *msg = "Temperature too high";
-
- dev_emerg(&tz->device, "%s: critical temperature reached\n", tz->type);
-
- __hw_protection_trigger(msg, poweroff_delay_ms, action);
+ dev_emerg(&tz->device, "%s: critical temperature reached and shutting down is probably a good idea\n", tz->type);
}
void thermal_zone_device_critical(struct thermal_zone_device *tz)