[PATCH] i386 visws: Add machine_shutdown and emergency_restart

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>
This commit is contained in:
Eric W. Biederman 2005-08-06 13:45:10 -06:00 committed by Linus Torvalds
parent 094528a7fb
commit 36cf446c2c

View File

@ -9,12 +9,15 @@
void (*pm_power_off)(void); void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off); EXPORT_SYMBOL(pm_power_off);
void machine_restart(char * __unused) void machine_shutdown(void)
{ {
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
smp_send_stop(); smp_send_stop();
#endif #endif
}
void machine_emergency_restart(void)
{
/* /*
* Visual Workstations restart after this * Visual Workstations restart after this
* register is poked on the PIIX4 * register is poked on the PIIX4
@ -22,6 +25,12 @@ void machine_restart(char * __unused)
outb(PIIX4_RESET_VAL, PIIX4_RESET_PORT); outb(PIIX4_RESET_VAL, PIIX4_RESET_PORT);
} }
void machine_restart(char * __unused)
{
machine_shutdown();
machine_emergency_restart();
}
void machine_power_off(void) void machine_power_off(void)
{ {
unsigned short pm_status; unsigned short pm_status;