lkml.org 
[lkml]   [2006]   [Sep]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -mm] PM: Remove sleeping from suspend_console
Date
Remove ssleep() from suspend_console().

Stefan thinks it is unnecessary and will slow down the suspend too much.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
---
---
kernel/printk.c | 5 -----
1 file changed, 5 deletions(-)

Index: linux-2.6.18-rc5-mm1/kernel/printk.c
===================================================================
--- linux-2.6.18-rc5-mm1.orig/kernel/printk.c
+++ linux-2.6.18-rc5-mm1/kernel/printk.c
@@ -713,11 +713,6 @@ void suspend_console(void)
printk("Suspending console(s)\n");
acquire_console_sem();
console_suspended = 1;
- /* This is needed so that all of the messages that have already been
- * written to all consoles can be actually transmitted (eg. over a
- * network) before we try to suspend the consoles' devices.
- */
- ssleep(2);
}

void resume_console(void)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-09-04 22:51    [W:0.034 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site