summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-04-01 11:18:48 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-04-01 19:11:26 +0300
commit851df52aa724109c1e664fc5c59610625bc83728 (patch)
tree700e219f1f16cfe39d0998f47f6c1ca44336b513
parent865d62d9dab31da2bd62a86f20ed9c00dacbab01 (diff)
arm64: config: toradex: set delay for thermal emergency poweroff
If the delay is not set, the thermal emergency poweroff function disabled. It leads to unable powering down the system in case of critical temperature is reached and system tool /sbin/poweroff is unavailable or fail. Set the option CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS to 10 seconds. Usually it's enough to shutting system down with /sbin/poweroff. The forceful kernel-side emergency poweroff procedure performs only if the system tool fails to power down the system within 10 seconds. Related-to: ELB-3852 Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
-rw-r--r--arch/arm64/configs/toradex_defconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm64/configs/toradex_defconfig b/arch/arm64/configs/toradex_defconfig
index c1c961d06889..559024220fce 100644
--- a/arch/arm64/configs/toradex_defconfig
+++ b/arch/arm64/configs/toradex_defconfig
@@ -452,6 +452,8 @@ CONFIG_SENSORS_SHT3x=m
CONFIG_SENSORS_INA2XX=m
CONFIG_SENSORS_INA3221=m
CONFIG_SENSORS_TMP102=m
+CONFIG_THERMAL_STATISTICS=y
+CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=10000
CONFIG_THERMAL_WRITABLE_TRIPS=y
CONFIG_THERMAL_GOV_POWER_ALLOCATOR=y
CONFIG_CPU_THERMAL=y