mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
Merge branch 'rework/kthreads' into for-linus
This commit is contained in:
@@ -82,6 +82,7 @@ void kernel_restart_prepare(char *cmd)
|
||||
{
|
||||
blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd);
|
||||
system_state = SYSTEM_RESTART;
|
||||
try_block_console_kthreads(10000);
|
||||
usermodehelper_disable();
|
||||
device_shutdown();
|
||||
}
|
||||
@@ -270,6 +271,7 @@ static void kernel_shutdown_prepare(enum system_states state)
|
||||
blocking_notifier_call_chain(&reboot_notifier_list,
|
||||
(state == SYSTEM_HALT) ? SYS_HALT : SYS_POWER_OFF, NULL);
|
||||
system_state = state;
|
||||
try_block_console_kthreads(10000);
|
||||
usermodehelper_disable();
|
||||
device_shutdown();
|
||||
}
|
||||
|
Reference in New Issue
Block a user