Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5045
b: refs/heads/master
c: 4a1421f
h: refs/heads/master
i:
  5043: c344660
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Jul 26, 2005
1 parent 3cda3e0 commit 252d0f3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 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: 59586e5a262a29361c45c929ea3253d4aec830b0
refs/heads/master: 4a1421f81b64e49ce932125e7222a2d7b7f87f13
10 changes: 7 additions & 3 deletions trunk/arch/i386/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,8 @@ void machine_shutdown(void)
#endif
}

void machine_restart(char * __unused)
void machine_emergency_restart(void)
{
machine_shutdown();

if (!reboot_thru_bios) {
if (efi_enabled) {
efi.reset_system(EFI_RESET_COLD, EFI_SUCCESS, 0, NULL);
Expand All @@ -337,6 +335,12 @@ void machine_restart(char * __unused)
machine_real_restart(jump_to_bios, sizeof(jump_to_bios));
}

void machine_restart(char * __unused)
{
machine_shutdown();
machine_emergency_restart();
}

void machine_halt(void)
{
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-i386/emergency-restart.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef _ASM_EMERGENCY_RESTART_H
#define _ASM_EMERGENCY_RESTART_H

#include <asm-generic/emergency-restart.h>
extern void machine_emergency_restart(void);

#endif /* _ASM_EMERGENCY_RESTART_H */

0 comments on commit 252d0f3

Please sign in to comment.