summaryrefslogtreecommitdiff
path: root/kernel/power
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-08-12 20:04:08 -0700
committerPatrick Mochel <mochel@osdl.org>2003-08-12 20:04:08 -0700
commit5e29fc2e90e6389f9cc3f8f8df6c54cb09eb5d47 (patch)
tree2769845f796e44054482d9d36ddc5931b633c5f6 /kernel/power
parent86aa5b107fca2ecd606cc9a4f5b81b4f05790c1b (diff)
[power] Minor cleanups.
From Pavel Machek.
Diffstat (limited to 'kernel/power')
-rw-r--r--kernel/power/console.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/kernel/power/console.c b/kernel/power/console.c
index bfaf3f14c114..c05d0e43675f 100644
--- a/kernel/power/console.c
+++ b/kernel/power/console.c
@@ -1,3 +1,9 @@
+/*
+ * drivers/power/process.c - Functions for saving/restoring console.
+ *
+ * Originally from swsusp.
+ */
+
#include <linux/vt_kern.h>
#include <linux/kbd_kern.h>
#include "power.h"
@@ -14,13 +20,13 @@ int pm_prepare_console(void)
#ifdef SUSPEND_CONSOLE
orig_fgconsole = fg_console;
- if(vc_allocate(SUSPEND_CONSOLE))
+ if (vc_allocate(SUSPEND_CONSOLE))
/* we can't have a free VC for now. Too bad,
* we don't want to mess the screen for now. */
return 1;
- set_console (SUSPEND_CONSOLE);
- if(vt_waitactive(SUSPEND_CONSOLE)) {
+ set_console(SUSPEND_CONSOLE);
+ if (vt_waitactive(SUSPEND_CONSOLE)) {
pr_debug("Suspend: Can't switch VCs.");
return 1;
}
@@ -34,7 +40,7 @@ void pm_restore_console(void)
{
console_loglevel = orig_loglevel;
#ifdef SUSPEND_CONSOLE
- set_console (orig_fgconsole);
+ set_console(orig_fgconsole);
#endif
return;
}