]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] Early debug forces console log level to max
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 11 Dec 2007 03:48:24 +0000 (14:48 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 11 Dec 2007 04:43:35 +0000 (15:43 +1100)
This makes the early debug option force the console loglevel
to the max.  The early debug option is meant to catch messages very
early in the kernel boot process, in many cases, before the kernel
has a chance to parse the "debug" command line argument.  Thus it
makes sense when CONFIG_PPC_EARLY_DEBUG is set, to force the console
log level to the max at boot time.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Kconfig.debug
arch/powerpc/kernel/udbg.c

index 6a79fe43e229e9036a25b8792eb45246f44db30c..d20ccf5f2ca99cc1f06ab37e809a4984a547f596 100644 (file)
@@ -151,6 +151,13 @@ config BOOTX_TEXT
 
 config PPC_EARLY_DEBUG
        bool "Early debugging (dangerous)"
+       help
+         Say Y to enable some early debugging facilities that may be available
+         for your processor/board combination. Those facilities are hacks
+         intended to debug problems early during boot, this should not be
+         enabled in a production kernel.
+         Note that enabling this will also cause the kernel default log level
+         to be pushed to max automatically very early during boot
 
 choice
        prompt "Early debugging console"
index d723070c9a33aaec3774dc2444b787c6f2f75b46..eba148f2a31c09b7b65a68def74628b4987c3815 100644 (file)
@@ -57,6 +57,10 @@ void __init udbg_early_init(void)
 #elif defined(CONFIG_PPC_EARLY_DEBUG_CPM)
        udbg_init_cpm();
 #endif
+
+#ifdef CONFIG_PPC_EARLY_DEBUG
+       console_loglevel = 10;
+#endif
 }
 
 /* udbg library, used by xmon et al */