Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362453
b: refs/heads/master
c: 6f389a8
h: refs/heads/master
i:
  362451: cfe5478
v: v3
  • Loading branch information
Huacai Chen authored and Rafael J. Wysocki committed Apr 8, 2013
1 parent 977c72f commit ddf3770
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ec376a2ab97ec3be52ca282dc6ac102e805d1005
refs/heads/master: 6f389a8f1dd22a24f3d9afc2812b30d639e94625
3 changes: 2 additions & 1 deletion trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ void kernel_restart_prepare(char *cmd)
system_state = SYSTEM_RESTART;
usermodehelper_disable();
device_shutdown();
syscore_shutdown();
}

/**
Expand Down Expand Up @@ -370,6 +369,7 @@ void kernel_restart(char *cmd)
{
kernel_restart_prepare(cmd);
disable_nonboot_cpus();
syscore_shutdown();
if (!cmd)
printk(KERN_EMERG "Restarting system.\n");
else
Expand All @@ -395,6 +395,7 @@ static void kernel_shutdown_prepare(enum system_states state)
void kernel_halt(void)
{
kernel_shutdown_prepare(SYSTEM_HALT);
disable_nonboot_cpus();
syscore_shutdown();
printk(KERN_EMERG "System halted.\n");
kmsg_dump(KMSG_DUMP_HALT);
Expand Down

0 comments on commit ddf3770

Please sign in to comment.