Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5047
b: refs/heads/master
c: 62b3a04
h: refs/heads/master
i:
  5045: 252d0f3
  5043: c344660
  5039: fbb19b1
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Jul 26, 2005
1 parent a74691f commit 2c692d2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 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: 7c9a90073c75bffbb89763a0c7d44a2e44e9e628
refs/heads/master: 62b3a04d75d2dc9480d5ad3b60f4258e548a6a83
18 changes: 11 additions & 7 deletions trunk/arch/x86_64/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,10 @@ void machine_shutdown(void)
local_irq_enable();
}

void machine_restart(char * __unused)
void machine_emergency_restart(void)
{
int i;

printk("machine restart\n");

if (!reboot_force) {
machine_shutdown();
}

/* Tell the BIOS if we want cold or warm reboot */
*((unsigned short *)__va(0x472)) = reboot_mode;

Expand All @@ -143,6 +137,16 @@ void machine_restart(char * __unused)
}
}

void machine_restart(char * __unused)
{
printk("machine restart\n");

if (!reboot_force) {
machine_shutdown();
}
machine_emergency_restart();
}

void machine_halt(void)
{
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86_64/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 2c692d2

Please sign in to comment.