[MIPS] early_printk: allow the early console to run earlier
authorFranck Bui-Huu <fbuihuu@gmail.com>
Thu, 3 May 2007 11:01:32 +0000 (13:01 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 11 May 2007 13:28:30 +0000 (14:28 +0100)
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/early_printk.c

index 818d7c350a2bf5c453eb1d8adf8b340accca896a..9dccfa4752b20b2eacdd366bf8be7c1f9c61a085 100644 (file)
@@ -30,7 +30,13 @@ static struct console early_console __initdata = {
        .index  = -1
 };
 
+static int early_console_initialized __initdata;
+
 void __init setup_early_printk(void)
 {
+       if (early_console_initialized)
+               return;
+       early_console_initialized = 1;
+
        register_console(&early_console);
 }