diff options
author | Wei Wang | 2017-07-24 19:17:29 -0500 |
---|---|---|
committer | android-build-merger | 2017-07-24 19:17:29 -0500 |
commit | da4e68944e5d1db9855c9fc44d7470e279e9e0eb (patch) | |
tree | b3842dd4e5945437c2eedfd42deb602f5ebbd592 | |
parent | 342e022547338ae88629e8a5d236d0e79309f88d (diff) | |
parent | 63a1d0a5f9d75bd1011678da3a05c0b440efe774 (diff) | |
download | platform-system-core-da4e68944e5d1db9855c9fc44d7470e279e9e0eb.tar.gz platform-system-core-da4e68944e5d1db9855c9fc44d7470e279e9e0eb.tar.xz platform-system-core-da4e68944e5d1db9855c9fc44d7470e279e9e0eb.zip |
init: Fire shutdown trigger for thermal shutdown
am: 63a1d0a5f9
Change-Id: I1355e32c56947a79666eb3a58d9299042171a25c
-rw-r--r-- | init/reboot.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/init/reboot.cpp b/init/reboot.cpp index d096b0dd8..e4779c7e2 100644 --- a/init/reboot.cpp +++ b/init/reboot.cpp | |||
@@ -498,10 +498,8 @@ bool HandlePowerctlMessage(const std::string& command) { | |||
498 | } | 498 | } |
499 | } | 499 | } |
500 | } else if (command == "thermal-shutdown") { // no additional parameter allowed | 500 | } else if (command == "thermal-shutdown") { // no additional parameter allowed |
501 | // run_fsck is false to avoid delay | ||
501 | cmd = ANDROID_RB_THERMOFF; | 502 | cmd = ANDROID_RB_THERMOFF; |
502 | // Do not queue "shutdown" trigger since we want to shutdown immediately | ||
503 | DoReboot(cmd, command, reboot_target, run_fsck); | ||
504 | return true; | ||
505 | } else { | 503 | } else { |
506 | command_invalid = true; | 504 | command_invalid = true; |
507 | } | 505 | } |