瀏覽代碼

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>
Andrey Smirnov 9 年之前
父節點
當前提交
ad24747304
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/powerpc/kernel/setup-common.c

+ 4 - 0
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();
 }