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:

committed by
Greg Kroah-Hartman

parent
ceeee1fb28
commit
7c8265f510
@@ -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();
|
||||
|
Reference in New Issue
Block a user