From: Andrey Smirnov Date: Thu, 28 Jul 2016 23:07:17 +0000 (-0700) Subject: powerpc: Call chained reset handlers during reset X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ad24747304de84d2b158f2e8a1d31b18153d3878;p=linux-beck.git 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 Signed-off-by: Scott Wood --- diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c index a730d5b25eb4..270ee30abdcf 100644 --- a/arch/powerpc/kernel/setup-common.c +++ b/arch/powerpc/kernel/setup-common.c @@ -146,6 +146,10 @@ void machine_restart(char *cmd) ppc_md.restart(cmd); smp_send_stop(); + + do_kernel_restart(cmd); + mdelay(1000); + machine_hang(); }