search for: acpi_enter_sleep_

Displaying 2 results from an estimated 2 matches for "acpi_enter_sleep_".

2008 Apr 04
0
[PATCH] Re: [Xen-staging] [linux-2.6.18-xen] linux/x86: fix powering off certain machines
...Signed-off-by: Alex Williamson <alex.williamson@hp.com> -- diff -r 0d6c9c975eae drivers/acpi/hardware/hwsleep.c --- a/drivers/acpi/hardware/hwsleep.c Fri Apr 04 13:27:48 2008 +0100 +++ b/drivers/acpi/hardware/hwsleep.c Fri Apr 04 10:22:07 2008 -0600 @@ -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_sle...
2007 Jun 27
1
[PATCH 7/10] SMP support to Xen PM
...info.pm1a_evt, acpi_sinfo.pm1b_evt, info->xen_waking_vec); return 0; +} + +static void acpi_power_off(void) +{ + pmprintk(XENLOG_INFO, "%s called\n", __FUNCTION__); + local_irq_disable(); + /* Some SMP machines only can poweroff in boot CPU */ + acpi_enter_sleep_state(ACPI_STATE_S5); } /* @@ -224,7 +261,34 @@ int acpi_enter_sleep(struct xenpf_enter_ acpi_video_flags = sleep->video_flags; saved_videomode = sleep->video_mode; - return enter_state(acpi_sinfo.sleep_state); + /* acpi power off method */ + if (acpi_sinfo.sleep_state...