Skip to content

Commit

Permalink
[PATCH] i386 visws: Add machine_shutdown and emergency_restart
Browse files Browse the repository at this point in the history
Another x86 subarchitecture bit I missed.  This adds both
machine_emergency_restart missed in my reboot fixes and
machine_shutdown needed for kexec support.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Aug 6, 2005
1 parent 094528a commit 36cf446
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion arch/i386/mach-visws/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,28 @@
void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);

void machine_restart(char * __unused)
void machine_shutdown(void)
{
#ifdef CONFIG_SMP
smp_send_stop();
#endif
}

void machine_emergency_restart(void)
{
/*
* Visual Workstations restart after this
* register is poked on the PIIX4
*/
outb(PIIX4_RESET_VAL, PIIX4_RESET_PORT);
}

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

void machine_power_off(void)
{
unsigned short pm_status;
Expand Down

0 comments on commit 36cf446

Please sign in to comment.