linux/x86: fix powering off certain machines
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · On Fri, 2008-04-04 at 13:29 +0100, Xen staging patchbot-linux-2.6.18-xen wrote:
# HG changeset patch
# User Keir Fraser <[email protected]> # Date 1207312068 -3600
# Node ID0d6c9c975eaee85e35d4007b1b84cafbfbb24378# Parent51f1b31888b8173dc9a94e46280f83c9011c4f51linux/x86: fix powering off certain machines
Quoted 7 lines
Dell's Precision490, for example, fails to properly power off without going through the full sequence of operations in the hypervisor. Hence
acpi_notify_hypervisor_state()must be defined, and used for entry to S5, regardless ofCONFIG_ACPI_PV_SLEEPconfiguration.Also fix a compiler warning and the improper use of a hypervisor return value as ACPI status.
ia64 doesn't implement acpi_notify_hypervisor_state() and I'm not sure
we want to let Xen own the acpi hardware. The patch below lets us continue to use the unmodified code. Thanks,
Alex
--
drivers/acpi/hardware/hwsleep.c +2 -2
@@ -227,7 +227,7 @@ acpi_status asmlinkage acpi_enter_sleep_u32 PM1Bcontrol;struct acpi_bit_register_info *sleep_type_reg_info;struct acpi_bit_register_info *sleep_enable_reg_info; -#ifndef CONFIG_XEN +#if !(defined(CONFIG_XEN ) && defined(CONFIG_X86 ))u32 in_value;#else int err;
@@ -331,7 +331,7 @@ acpi_status asmlinkage acpi_enter_sleep_ACPI_FLUSH_CPU_CACHE (); -#ifndef CONFIG_XEN +#if !(defined(CONFIG_XEN ) && defined(CONFIG_X86 )) status =acpi_hw_register_write (ACPI_MTX_DO_NOT_LOCK ,ACPI_REGISTER_PM1A_CONTROL , PM1Acontrol);