diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2016-07-29 02:07:17 +0300 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-09-25 08:06:40 +0300 |
commit | ad24747304de84d2b158f2e8a1d31b18153d3878 (patch) | |
tree | f84d47852c9892e18145524a1b490458f4508cf4 | |
parent | d0d738a41474a75b686b2a0b9c1a62928556e673 (diff) | |
download | linux-ad24747304de84d2b158f2e8a1d31b18153d3878.tar.xz |
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(); } |