diff options
author | Keun-young Park <keunyoung@google.com> | 2017-07-18 10:58:28 -0700 |
---|---|---|
committer | Keun-young Park <keunyoung@google.com> | 2017-07-19 18:38:20 -0700 |
commit | c111537f5d87aa95f94daa529dcae2c2b53c4314 (patch) | |
tree | af8745aca7e8e3a2643f0477a9c43fbae1c4adc1 /trusty/coverage/coverage.cpp | |
parent | c5aba9702ed1f592a05a96463a3377e029f1b339 (diff) |
init: Do full shutdown even for thermal shutdown
- Skipping SIGTERM / SIGKILL / umount brings race between block
device driver and fs layer. Do umount before shutting down.
- Reduce timeout to 1 sec for thermal shutdown and skip other time
taking part like fsck.
- Refactor waiting part to check time in ms so that 1 sec can
have enough resolution.
bug: 63686426
Test: adb shell setprop sys.powerctl thermal-shutdown, adb shell setprop sys.powerctl reboot and check dmesg
Merged-In: I048bac767b328c8d656a97fe65dde5f2b5bf4ae5
Change-Id: I048bac767b328c8d656a97fe65dde5f2b5bf4ae5
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions