* [PATCH] ACPI 2.5.45 relies on Software Suspend for S4
@ 2002-11-03 16:30 Dominik Brodowski
0 siblings, 0 replies; only message in thread
From: Dominik Brodowski @ 2002-11-03 16:30 UTC (permalink / raw)
To: andrew.grover-ral2JQCrhuEAvxtiuMwx3w,
acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
... and so only claim S4 support when it's available (NB: software suspend
doesn't work at the moment. But will hopefully work again soon)
Dominik
--- linux/drivers/acpi/sleep.c.original Sun Nov 3 17:26:04 2002
+++ linux/drivers/acpi/sleep.c Sun Nov 3 17:28:20 2002
@@ -227,7 +227,7 @@
acpi_status status;
/* get out if state is invalid */
- if (state < ACPI_STATE_S1 || state > ACPI_STATE_S5)
+ if (state < ACPI_STATE_S1 || state > ACPI_STATE_S5 || (state == ACPI_STATE_S4))
return AE_ERROR;
freeze_processes(); /* device_suspend needs processes to be stopped */
@@ -706,10 +706,15 @@
pm_power_off = acpi_power_off;
register_sysrq_key('o', &sysrq_acpi_poweroff_op);
+#ifdef CONFIG_SOFTWARE_SUSPEND
/* workaround: some systems don't claim S4 support, but they
do support S5 (power-down). That is all we need, so
indicate support. */
sleep_states[ACPI_STATE_S4] = 1;
+#else
+ /* we rely on SOFTWARE_SUSPEND to use S4. */
+ sleep_states[ACPI_STATE_S4] = 0;
+#endif
}
return_VALUE(0);
-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-03 16:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-03 16:30 [PATCH] ACPI 2.5.45 relies on Software Suspend for S4 Dominik Brodowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox