|
@@ -376,18 +376,21 @@ void emergency_restart(void)
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(emergency_restart);
|
|
|
|
|
|
-/**
|
|
|
- * kernel_restart - reboot the system
|
|
|
- *
|
|
|
- * Shutdown everything and perform a clean reboot.
|
|
|
- * This is not safe to call in interrupt context.
|
|
|
- */
|
|
|
void kernel_restart_prepare(char *cmd)
|
|
|
{
|
|
|
notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd);
|
|
|
system_state = SYSTEM_RESTART;
|
|
|
device_shutdown();
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * kernel_restart - reboot the system
|
|
|
+ * @cmd: pointer to buffer containing command to execute for restart
|
|
|
+ * or NULL
|
|
|
+ *
|
|
|
+ * Shutdown everything and perform a clean reboot.
|
|
|
+ * This is not safe to call in interrupt context.
|
|
|
+ */
|
|
|
void kernel_restart(char *cmd)
|
|
|
{
|
|
|
kernel_restart_prepare(cmd);
|