Przeglądaj źródła

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 lat temu
rodzic
commit
ad24747304
1 zmienionych plików z 4 dodań i 0 usunięć
  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);
 		ppc_md.restart(cmd);
 
 
 	smp_send_stop();
 	smp_send_stop();
+
+	do_kernel_restart(cmd);
+	mdelay(1000);
+
 	machine_hang();
 	machine_hang();
 }
 }