]> git.karo-electronics.de Git - linux-beck.git/commitdiff
powerpc: Call chained reset handlers during reset
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Thu, 28 Jul 2016 23:07:17 +0000 (16:07 -0700)
committerScott Wood <oss@buserror.net>
Sun, 25 Sep 2016 05:06:40 +0000 (00:06 -0500)
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>
arch/powerpc/kernel/setup-common.c

index a730d5b25eb4d4031fcbdc77b0ee006ee4eab104..270ee30abdcf739982438271d8b5957e7e830dbb 100644 (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();
 }