|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] Power down an x86 system directly within domain0 rather
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 8b40a2c75f8e2b562ee64807ba3d9575aa30e85c
# Parent 1e3145ad20a683c9c0e26123098164f0c82aa55c
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@xxxxxxxxxx>
diff -r 1e3145ad20a6 -r 8b40a2c75f8e
linux-2.6-xen-sparse/drivers/xen/core/reboot.c
--- a/linux-2.6-xen-sparse/drivers/xen/core/reboot.c Fri Apr 7 17:33:36 2006
+++ b/linux-2.6-xen-sparse/drivers/xen/core/reboot.c Sat Apr 8 08:07:54 2006
@@ -59,6 +59,10 @@
{
/* We really want to get pending console data out before we die. */
xencons_force_flush();
+#if defined(__i386__) || defined(__x86_64__)
+ if (pm_power_off)
+ pm_power_off();
+#endif
HYPERVISOR_shutdown(SHUTDOWN_poweroff);
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
|
|
|
|