Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1695b29d authored by Douglas Anderson's avatar Douglas Anderson Committed by Doug Anderson
Browse files

init: reboot: Remove `reboot_target` arg from RebootMonitorThread()

The `reboot_target` is only relevant for reboot, not shutdown. The
RebootMonitorThread() never directly reboots--whenever it needs to
reboot it writes "c" to `/proc/sysrq`. That means we don't need the
`reboot_target`. Remove it.

NOTE: if you dig into RebootSystem() it looks as if we need to keep
`reboot_target` in the case of `ANDROID_RB_THERMOFF`. However, if
you follow through the code you can see that in HandlePowerctlMessage()
whenever we set `ANDROID_RB_THERMOFF` we always leave `reboot_target`
as "".

Bug: 409835922
Test: Hack a timeout in and see shutdown/reboot still work.
Change-Id: I9390bc30ae0fb555ee018a3f3c2697d379b6c881
parent 2728444c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment