diff options
author | 2021-08-09 03:08:40 +0200 | |
---|---|---|
committer | 2025-06-10 08:40:33 -0600 | |
commit | 1a193456218b45a7cd85a52f734fcb138e7209a4 (patch) | |
tree | 402b60f8e733283c398caca7534f50f269ae4e3a | |
parent | v4l2: add loopback driver (diff) | |
download | laptop-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.c | 11 |
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) |