Looking at kernel 4.14, I see a config:
CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS
We have this at 0 right now. I think it's supposed to be something larger. Specifically it looks like things happen like this when we see a critical thermal event:
* Schedule an emergency power off for CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS later.
* Start an orderly shutdown.
I'm looking specifically at handle_critical_trips().
...so if CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS it seems like we'll start both the orderly and emergency shutdown at the same time. That doesn't seem quite right.
Comment 1 by benhenry@chromium.org
, Aug 3