public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm] PM: Remove sleeping from suspend_console
@ 2006-09-04 20:50 Rafael J. Wysocki
  2006-09-05  6:28 ` Stefan Seyfried
  0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2006-09-04 20:50 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Pavel Machek, Stefan Seyfried, LKML

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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -mm] PM: Remove sleeping from suspend_console
  2006-09-04 20:50 [PATCH -mm] PM: Remove sleeping from suspend_console Rafael J. Wysocki
@ 2006-09-05  6:28 ` Stefan Seyfried
  2006-09-05 11:08   ` Rafael J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Seyfried @ 2006-09-05  6:28 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: Andrew Morton, Pavel Machek, LKML

On Mon, Sep 04, 2006 at 10:50:40PM +0200, Rafael J. Wysocki wrote:
> Remove ssleep() from suspend_console().
> 
> Stefan thinks it is unnecessary and will slow down the suspend too much.

"unnecessary" is not exactly what i think, rather "unacceptable" :-)
We probably need to do something for some kinds of consoles to make sure all
characters are sent, but sleeping unconditionally is not the right thing IMO.

> --- 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)

-- 
Stefan Seyfried
QA / R&D Team Mobile Devices        |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg  | "Well, surrounding them's out." 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH -mm] PM: Remove sleeping from suspend_console
  2006-09-05  6:28 ` Stefan Seyfried
@ 2006-09-05 11:08   ` Rafael J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael J. Wysocki @ 2006-09-05 11:08 UTC (permalink / raw)
  To: Stefan Seyfried; +Cc: Andrew Morton, Pavel Machek, LKML, Laurent Riffard

On Tuesday, 5 September 2006 08:28, Stefan Seyfried wrote:
> On Mon, Sep 04, 2006 at 10:50:40PM +0200, Rafael J. Wysocki wrote:
> > Remove ssleep() from suspend_console().
> > 
> > Stefan thinks it is unnecessary and will slow down the suspend too much.
> 
> "unnecessary" is not exactly what i think, rather "unacceptable" :-)

Still that implies it's not necessary. ;-)

> We probably need to do something for some kinds of consoles to make sure all
> characters are sent, but sleeping unconditionally is not the right thing IMO.

Yup.  This was added as a result of the Laurent Riffard's report that the sleep
was necessary, but it turned out to be due to the network card problem, so we
should get rid of the ssleep().

Greetings,
Rafael


-- 
You never change things by fighting the existing reality.
		R. Buckminster Fuller

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-05 11:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-04 20:50 [PATCH -mm] PM: Remove sleeping from suspend_console Rafael J. Wysocki
2006-09-05  6:28 ` Stefan Seyfried
2006-09-05 11:08   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox