diff options
author | 2021-08-09 03:08:40 +0200 | |
---|---|---|
committer | 2024-03-12 22:23:13 -0600 | |
commit | 7b6392a2ec32454025f2ee3833437a534bc47c9b (patch) | |
tree | 6b27c049d5dc70ddf4706ae7e761f1f562e95997 /drivers/thermal/thermal_core.c | |
parent | v4l2: add loopback driver (diff) | |
download | laptop-kernel-7b6392a2ec32454025f2ee3833437a534bc47c9b.tar.xz laptop-kernel-7b6392a2ec32454025f2ee3833437a534bc47c9b.zip |
thermal: don't shut off system when melting
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/thermal/thermal_core.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index dfaa6341694a..a978e4cc8b2a 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -320,19 +320,7 @@ void thermal_governor_update_tz(struct thermal_zone_device *tz, static void thermal_zone_device_halt(struct thermal_zone_device *tz, bool shutdown) { - /* - * 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); - - if (shutdown) - hw_protection_shutdown(msg, poweroff_delay_ms); - else - hw_protection_reboot(msg, poweroff_delay_ms); + 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) |