Merge "init: Fire shutdown trigger for thermal shutdown" am: 603cae8b48 am: b0a6129c43 am: fc2f0a0ce7

am: 9a63ee349d

Change-Id: I6e44b248c79a7472bea4557fc55bbf79733ecd14
This commit is contained in:
Wei Wang 2017-07-24 22:27:50 +00:00 committed by android-build-merger
commit 2257815813
1 changed files with 1 additions and 3 deletions

View File

@ -498,10 +498,8 @@ bool HandlePowerctlMessage(const std::string& command) {
}
}
} else if (command == "thermal-shutdown") { // no additional parameter allowed
// run_fsck is false to avoid delay
cmd = ANDROID_RB_THERMOFF;
// Do not queue "shutdown" trigger since we want to shutdown immediately
DoReboot(cmd, command, reboot_target, run_fsck);
return true;
} else {
command_invalid = true;
}