# HG changeset patch # User harry@xxxxxxxxxxxxxxxxxxxxx # Node ID 5c85b5dd3f8eda21cbcf529941dc41c72a7c6e09 # Parent 67de34c062b5897d1e82995b171be081f976558e Allow a domain to call native pm_power_off if present. Fixes dom0 failure to power off on shutdown. diff -r 67de34c062b5 -r 5c85b5dd3f8e linux-2.6-xen-sparse/drivers/xen/core/reboot.c --- a/linux-2.6-xen-sparse/drivers/xen/core/reboot.c Thu Apr 6 11:03:53 2006 +++ b/linux-2.6-xen-sparse/drivers/xen/core/reboot.c Thu Apr 6 18:25:23 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); }