Suspend infrastructure cleanup and extension

Allow devices to participate in the suspend process more intimately,
in particular, allow the final phase (with interrupts disabled) to
also be open to normal devices, not just system devices.

Also, allow classes to participate in device suspend.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Linus Torvalds
2006-06-24 14:50:29 -07:00
committed by Greg Kroah-Hartman
parent ceeee1fb28
commit 7c8265f510
5 changed files with 130 additions and 36 deletions

View File

@@ -57,6 +57,10 @@ static int suspend_prepare(suspend_state_t state)
if (!pm_ops || !pm_ops->enter)
return -EPERM;
error = device_prepare_suspend(PMSG_SUSPEND);
if (error)
return error;
pm_prepare_console();
disable_nonboot_cpus();