Add support for suspending and resuming the whole console subsystem
Trying to suspend/resume with console messages flying all around is doomed to failure, when the devices that the messages are trying to go to are being shut down. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
@@ -86,6 +86,7 @@ static int suspend_prepare(suspend_state_t state)
|
||||
goto Thaw;
|
||||
}
|
||||
|
||||
suspend_console();
|
||||
if ((error = device_suspend(PMSG_SUSPEND))) {
|
||||
printk(KERN_ERR "Some devices failed to suspend\n");
|
||||
goto Finish;
|
||||
@@ -133,6 +134,7 @@ int suspend_enter(suspend_state_t state)
|
||||
static void suspend_finish(suspend_state_t state)
|
||||
{
|
||||
device_resume();
|
||||
resume_console();
|
||||
thaw_processes();
|
||||
enable_nonboot_cpus();
|
||||
if (pm_ops && pm_ops->finish)
|
||||
|
Reference in New Issue
Block a user