forked from luck/tmp_suning_uos_patched
[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
|
@ -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 New Issue
Block a user