Small cleanups
Hi!
Few small cleanups, please apply.
Pavel
usr/src/linux/kernel/power/console.c renamed from usr/src/tmp/linux/kernel/power/console.c +10 -4
@@ -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/linux/kernel/power/swsusp.c renamed from usr/src/tmp/linux/kernel/power/swsusp.c +2 -2
@@ -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. *
Signature · 2 lines
When do you have a heart between your knees? [Johanka's followup: and *two* hearts?]