* [PM] Small cleanups
@ 2003-08-10 20:21 Pavel Machek
0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2003-08-10 20:21 UTC (permalink / raw)
To: kernel list, Patrick Mochel
Hi!
Few small cleanups, please apply.
Pavel
--- /usr/src/tmp/linux/kernel/power/console.c 2003-08-10 21:23:36.000000000 +0200
+++ /usr/src/linux/kernel/power/console.c 2003-08-10 22:07:12.000000000 +0200
@@ -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 @@
#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 @@
{
console_loglevel = orig_loglevel;
#ifdef SUSPEND_CONSOLE
- set_console (orig_fgconsole);
+ set_console(orig_fgconsole);
#endif
return;
}
--- /usr/src/tmp/linux/kernel/power/swsusp.c 2003-08-10 21:23:36.000000000 +0200
+++ /usr/src/linux/kernel/power/swsusp.c 2003-08-10 22:08:09.000000000 +0200
@@ -504,7 +508,7 @@
device_resume(RESUME_ENABLE);
}
if (flags & RESUME_PHASE2) {
- if(pm_suspend_state) {
+ if (pm_suspend_state) {
if(pm_send_all(PM_RESUME,(void *)0))
printk(KERN_WARNING "Problem while sending resume event\n");
pm_suspend_state=0;
@@ -715,7 +719,7 @@
blk_run_queues();
/* Save state of all device drivers, and stop them. */
- if(drivers_suspend()==0)
+ if (drivers_suspend()==0)
/* If stopping device drivers worked, we proceed basically into
* suspend_save_image.
*
--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-10 20:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-10 20:21 [PM] Small cleanups Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®