ia64/xen-unstable

changeset 9633:c5df04d6af17

Power down an x86 system directly within domain0 rather than
executing a shutdown hypercall. Domain0 is able to execute
ACPI power-off code.

Signed-off-by: Harry Butterworth <butterwo@uk.ibm.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Apr 07 13:40:22 2006 +0100 (2006-04-07)
parents fb174770f426
children d857c6281410
files linux-2.6-xen-sparse/drivers/xen/core/reboot.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/core/reboot.c	Fri Apr 07 11:52:00 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/core/reboot.c	Fri Apr 07 13:40:22 2006 +0100
     1.3 @@ -59,6 +59,10 @@ void machine_power_off(void)
     1.4  {
     1.5  	/* We really want to get pending console data out before we die. */
     1.6  	xencons_force_flush();
     1.7 +#if defined(__i386__) || defined(__x86_64__)
     1.8 +	if (pm_power_off)
     1.9 +		pm_power_off();
    1.10 +#endif
    1.11  	HYPERVISOR_shutdown(SHUTDOWN_poweroff);
    1.12  }
    1.13