[PATCH 2/3] powerpc: Call chained reset handlers during reset

From: Andrey Smirnov
Date: Tue Jul 26 2016 - 00:25:59 EST


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@xxxxxxxxx>
---
arch/powerpc/kernel/setup-common.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index 5cd3283..205d073 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -145,6 +145,10 @@ void machine_restart(char *cmd)
ppc_md.restart(cmd);

smp_send_stop();
+
+ do_kernel_restart(cmd);
+ mdelay(1000);
+
machine_hang();
}

--
2.5.5