hosted: Slightly cleaner shutdown; kill the display first.
Change-Id: I620d7afb2eb0556cde07c7828b134b13892e6db4
This commit is contained in:
parent
fd2e65e94d
commit
7719010ed7
1 changed files with 4 additions and 0 deletions
|
@ -84,7 +84,9 @@ static void sig_handler(int sig, siginfo_t *siginfo, void *context)
|
|||
|
||||
void power_off(void)
|
||||
{
|
||||
backlight_hw_off();
|
||||
system("/sbin/poweroff");
|
||||
while (1); /* halt */
|
||||
}
|
||||
|
||||
void system_init(void)
|
||||
|
@ -109,7 +111,9 @@ void system_init(void)
|
|||
|
||||
void system_reboot(void)
|
||||
{
|
||||
backlight_hw_off();
|
||||
system("/sbin/reboot");
|
||||
while (1); /* halt */
|
||||
}
|
||||
|
||||
void system_exception_wait(void)
|
||||
|
|
Loading…
Reference in a new issue