|
@@ -314,6 +314,7 @@ void kernel_restart_prepare(char *cmd)
|
|
{
|
|
{
|
|
blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd);
|
|
blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd);
|
|
system_state = SYSTEM_RESTART;
|
|
system_state = SYSTEM_RESTART;
|
|
|
|
+ usermodehelper_disable();
|
|
device_shutdown();
|
|
device_shutdown();
|
|
sysdev_shutdown();
|
|
sysdev_shutdown();
|
|
syscore_shutdown();
|
|
syscore_shutdown();
|
|
@@ -344,6 +345,7 @@ static void kernel_shutdown_prepare(enum system_states state)
|
|
blocking_notifier_call_chain(&reboot_notifier_list,
|
|
blocking_notifier_call_chain(&reboot_notifier_list,
|
|
(state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL);
|
|
(state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL);
|
|
system_state = state;
|
|
system_state = state;
|
|
|
|
+ usermodehelper_disable();
|
|
device_shutdown();
|
|
device_shutdown();
|
|
}
|
|
}
|
|
/**
|
|
/**
|