[PATCH]Disable early console in default to avoid printing boot message twice

Li Tony-r64360 Tony.Li at freescale.com
Fri Jan 26 19:00:08 EST 2007


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 <tony.li at freescale.com>

---
 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.c
b/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
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070126/22155a5e/attachment.htm>


More information about the Linuxppc-dev mailing list