From: Franck Bui-Huu Date: Thu, 3 May 2007 11:01:32 +0000 (+0200) Subject: [MIPS] early_printk: allow the early console to run earlier X-Git-Tag: v2.6.22-rc1~30^2~26 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36ea1d57a4bb7d033b5f99f13c08f9af56cd70d7;p=linux-2.6 [MIPS] early_printk: allow the early console to run earlier Signed-off-by: Franck Bui-Huu Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/early_printk.c b/arch/mips/kernel/early_printk.c index 818d7c350a..9dccfa4752 100644 --- a/arch/mips/kernel/early_printk.c +++ b/arch/mips/kernel/early_printk.c @@ -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); }