[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1233372459-6434-1-git-send-email-arve@android.com>
Date: Fri, 30 Jan 2009 19:27:38 -0800
From: Arve Hjønnevåg <arve@...roid.com>
To: linux-pm@...ts.linux-foundation.org, linux-kernel@...r.kernel.org
Cc: swetland@...gle.com, pavel@....cz,
Arve Hjønnevåg <arve@...roid.com>
Subject: [PATCH 1/2] PM: Wait for console in resume.
Avoids later waking up to a blinking cursor if the device
woke up and returned to sleep before the console switch happened.
Signed-off-by: Brian Swetland <swetland@...gle.com>
Signed-off-by: Arve Hjønnevåg <arve@...roid.com>
---
kernel/power/console.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/kernel/power/console.c b/kernel/power/console.c
index b8628be..a3961b2 100644
--- a/kernel/power/console.c
+++ b/kernel/power/console.c
@@ -78,6 +78,12 @@ void pm_restore_console(void)
}
set_console(orig_fgconsole);
release_console_sem();
+
+ if (vt_waitactive(orig_fgconsole)) {
+ pr_debug("Resume: Can't switch VCs.");
+ return;
+ }
+
kmsg_redirect = orig_kmsg;
}
#endif
--
1.6.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists