power: use orderly shutdown
authorzhaoxp3 <zhaoxp3@motorola.com>
Fri, 19 Apr 2019 01:50:18 +0000 (09:50 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Mon, 10 Jun 2019 03:25:13 +0000 (11:25 +0800)
commitb1d518e7900cdda1d1e2eefd92ade5765af12397
treee142440594152b839705ab5c5a0097d593280a53
parent9a9079971f6075ad7e2541c29e5e9f6f763f3329
power: use orderly shutdown

User an orderly shutdown for factory kill instead of a
kernel power off.  The orderly shutdown will attempt to
call the reboot binary from userspace first, and then
fallback to kernel power off if it fails.

Change-Id: Ia05f1c9e1ca25b403a4c5507da2d61d267e67Defender
Signed-off-by: zhaoxp3 <zhaoxp3@motorola.com>
Reviewed-on: https://gerrit.mot.com/1339132
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Xu <xuwei9@mt.com>
Submit-Approved: Jira Key
drivers/power/supply/s2mu00x_battery.c