introduce a arch_shutdown call and call it from shutdown_barebox
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
e723f79cb7
commit
edf4e51a82
|
@ -174,5 +174,8 @@ void __noreturn hang (void)
|
|||
void shutdown_barebox(void)
|
||||
{
|
||||
devices_shutdown();
|
||||
#ifdef ARCH_SHUTDOWN
|
||||
arch_shutdown();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -135,6 +135,7 @@ void start_barebox(void);
|
|||
void shutdown_barebox(void);
|
||||
|
||||
int arch_execute(void *, int argc, char *argv[]);
|
||||
void arch_shutdown(void);
|
||||
|
||||
int run_shell(void);
|
||||
|
||||
|
|
Loading…
Reference in New Issue