lkml.org 
[lkml]   [2006]   [Jul]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] no console disabling during suspend stage
On Wed, 19 Jul 2006 11:16:00 +0200
Rodolfo Giometti <giometti@linux.it> wrote:

> here a little patch to avoid disabling console during suspend stage
> while we are debugging kernel.
>
> ...
>
> --- kernel/power/main.c 2006-07-19 10:54:11.000000000 +0200
> +++ kernel/power/main.c.new 2006-07-18 19:38:41.000000000 +0200
> @@ -86,7 +86,9 @@
> goto Thaw;
> }
>
> +#ifndef CONFIG_DEBUG_KERNEL
> suspend_console();
> +#endif

CONFIG_DEBUG_KERNEL is not really the appropriate thing to use here - it's
more a user-interface/Kconfig level thing.

Can you please describe the problems which suspend_console() are causing?

Some runtime knob might be more appropriate. Perhaps /sys/power/debug?

If the suspend_console() call is to be disabled then you'll want to disable
the matching resume_console() call too.

printk.c needs sem2mutex conversion.

The console_suspended/secondary_console_sem handling is racy. Bad Linus.
But as we're running on a single CPU and all other tasks are frozen it
doesn't matter.
-
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-07-21 15:09    [W:0.040 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site