summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2004-06-29 05:16:41 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-29 05:16:41 -0700
commit7b4032e77c055ca5bbde16d10c384a40e36ff8cb (patch)
tree42cdca55694bbed2777eefb9426c9c4f45bab9c5 /include/linux
parentd070a4344d28190dbdfeaebc416681a569e2cded (diff)
[PATCH] Provide console_suspend() and console_resume()
Add console_stop() and console_start() methods so the serial drivers can disable console output before suspending a port, and re-enable output afterwards. We also add locking to ensure that we synchronise with any in-progress printk. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/console.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/console.h b/include/linux/console.h
index ee29ca6d2ae3..488678c037a1 100644
--- a/include/linux/console.h
+++ b/include/linux/console.h
@@ -105,6 +105,8 @@ extern void release_console_sem(void);
extern void console_conditional_schedule(void);
extern void console_unblank(void);
extern struct tty_driver *console_device(int *);
+extern void console_stop(struct console *);
+extern void console_start(struct console *);
extern int is_console_locked(void);
/* Some debug stub to catch some of the obvious races in the VT code */