[MIPS] early_printk: allow the early console to run earlier
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
ca4437d4a5
commit
36ea1d57a4
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue