mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
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:
parent
5603509137
commit
557240b48e
3 changed files with 33 additions and 1 deletions
|
@ -117,6 +117,10 @@ extern void console_stop(struct console *);
|
|||
extern void console_start(struct console *);
|
||||
extern int is_console_locked(void);
|
||||
|
||||
/* Suspend and resume console messages over PM events */
|
||||
extern void suspend_console(void);
|
||||
extern void resume_console(void);
|
||||
|
||||
/* Some debug stub to catch some of the obvious races in the VT code */
|
||||
#if 1
|
||||
#define WARN_CONSOLE_UNLOCKED() WARN_ON(!is_console_locked() && !oops_in_progress)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue