powerpc: Call chained reset handlers during reset

Call out to all restart handlers that were added via
register_restart_handler() API when restarting the machine.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Scott Wood <oss@buserror.net>
This commit is contained in:
Andrey Smirnov 2016-07-28 16:07:17 -07:00 committed by Scott Wood
parent d0d738a414
commit ad24747304
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ void machine_restart(char *cmd)
ppc_md.restart(cmd);
smp_send_stop();
do_kernel_restart(cmd);
mdelay(1000);
machine_hang();
}