diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-07-29 01:07:17 +0200 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-09-25 07:06:40 +0200 |
commit | ad24747304de84d2b158f2e8a1d31b18153d3878 (patch) | |
tree | f84d47852c9892e18145524a1b490458f4508cf4 | |
parent | powerpc: Factor out common code in setup-common.c (diff) | |
download | linux-ad24747304de84d2b158f2e8a1d31b18153d3878.tar.xz linux-ad24747304de84d2b158f2e8a1d31b18153d3878.zip |
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>
-rw-r--r-- | arch/powerpc/kernel/setup-common.c | 4 |
1 files changed, 4 insertions, 0 deletions
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(); } |