Skip to content

Commit

Permalink
[MIPS] early_printk: allow the early console to run earlier
Browse files Browse the repository at this point in the history
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Franck Bui-Huu authored and Ralf Baechle committed May 11, 2007
1 parent ca4437d commit 36ea1d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/mips/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 36ea1d5

Please sign in to comment.