[PATCH]Disable early console in default to avoid printing boot message twice
From: Li Tony-r64360 <hidden>
Date: 2007-01-26 08:00:13
The early console is default enable in powerpc 32 now. This cause the boot message from beginning to console_init() printed twice. The early console is useful only when the kernel dead before console_init. The patch make the early console optional and disable the early console in default. The patch has been tested on mpc8313erdb board Signed-off-by: Li Tony <redacted> --- arch/powerpc/Kconfig | 2 +- arch/powerpc/kernel/setup_32.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 0673dbe..0c18951 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig@@ -59,7 +59,7 @@ config PPC config EARLY_PRINTK bool - default y + default t config COMPAT bool
diff --git a/arch/powerpc/kernel/setup_32.cb/arch/powerpc/kernel/setup_32.c index a4c2964..71eb320 100644
--- a/arch/powerpc/kernel/setup_32.c
+++ b/arch/powerpc/kernel/setup_32.c@@ -242,8 +242,10 @@ void __init setup_arch(char **cmdline_p) smp_setup_cpu_maps(); +#ifdef CONFIG_EARLY_PRINTK /* Register early console */ register_early_udbg_console(); +#endif xmon_setup();
--
1.4.2