From: M. B. <ser...@ne...> - 2004-03-15 22:24:11
|
Hi=20 On Mon, 2004-03-15 at 21:07, Willy Tarreau wrote: > --- linux-2.4.26-pre3-acpi/drivers/acpi/system.c Mon Mar 15 21:54:55 2004 > +++ linux-2.4.26-pre3-acpi-pwoff/drivers/acpi/system.c Mon Mar 15 21:57:3= 2 2004 > @@ -46,13 +46,6 @@ > #include <linux/mc146818rtc.h> > #include <linux/irq.h> > #include <asm/hw_irq.h> > - > -acpi_status acpi_system_save_state(u32); > -#else > -static inline acpi_status acpi_system_save_state(u32 state) > -{ > - return AE_OK; > -} > #endif /* !CONFIG_ACPI_SLEEP */ > =20 > #define _COMPONENT ACPI_SYSTEM_COMPONENT > @@ -102,7 +95,8 @@ > BUG(); > /* Some SMP machines only can poweroff in boot CPU */ > set_cpus_allowed(current, 1UL << cpu_logical_map(0)); > - acpi_system_save_state(ACPI_STATE_S5); > + pm_send_all(PM_SAVE_STATE, (void *)3); > + pm_send_all(PM_SUSPEND, (void *)3); > acpi_enter_sleep_state_prep(ACPI_STATE_S5); > ACPI_DISABLE_IRQS(); > acpi_enter_sleep_state(ACPI_STATE_S5); and status =3D acpi_system_save_state(state);=20 on line 341 of drivers/acpi/system.c ? =20 --=20 S=E9rgio M. B. |