mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Ask devices to powerdown before S3 sleep
@ 2003-01-19 21:46 Pavel Machek
  2003-01-21  1:27 ` Andre Hedrick
  2003-01-21  7:56 ` Zwane Mwaikambo
  0 siblings, 2 replies; 8+ messages in thread
From: Pavel Machek @ 2003-01-19 21:46 UTC (permalink / raw)
  To: Andrew Grover, kernel list, ACPI mailing list

Hi!

SUSPEND_RESUME phase is needed for turning off IO-APIC. [I believe
SUSPEND_DISABLE should be so simple that errors just should not be
there, and besides we would not know how to safely enable devices from
such weird state, anyway]. Please apply,

								Pavel

--- clean/drivers/acpi/sleep.c	2003-01-05 22:58:25.000000000 +0100
+++ linux-swsusp/drivers/acpi/sleep.c	2003-01-19 21:27:00.000000000 +0100
@@ -143,6 +143,10 @@
 			return error;
 		}
 
+		error = device_suspend(state, SUSPEND_DISABLE);
+		if (error)
+			panic("Sorry, devices really should know how to disable\n");
+
 		/* flush caches */
 		ACPI_FLUSH_CPU_CACHE();

-- 
Worst form of spam? Adding advertisment signatures ala sourceforge.net.
What goes next? Inserting advertisment *into* email?

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-01-21 11:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-19 21:46 Ask devices to powerdown before S3 sleep Pavel Machek
2003-01-21  1:27 ` Andre Hedrick
2003-01-21 10:47   ` Pavel Machek
2003-01-21 11:38     ` Andre Hedrick
2003-01-21  7:56 ` Zwane Mwaikambo
2003-01-21 10:46   ` Pavel Machek
2003-01-21 10:55     ` Zwane Mwaikambo
2003-01-21 11:03       ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®