power: use orderly shutdown
authorzhaoxp3 <zhaoxp3@motorola.com>
Fri, 19 Apr 2019 01:50:18 +0000 (09:50 +0800)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:58 +0000 (20:23 +0300)
commitad4c1990b77c195b935ebfa48a845ea821ee0dce
tree39619f670783e7ba8f101d9abb428e0c8a6723ec
parent04405038617ad17cd6576b64163dd07265859aec
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: Ia05f1c9e1ca25b403a4c5507da2d61d267e67def
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