projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca4437d
)
[MIPS] early_printk: allow the early console to run earlier
author
Franck Bui-Huu
<fbuihuu@gmail.com>
Thu, 3 May 2007 11:01:32 +0000
(13:01 +0200)
committer
Ralf 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/early_printk.c
b/arch/mips/kernel/early_printk.c
index 818d7c350a2bf5c453eb1d8adf8b340accca896a..9dccfa4752b20b2eacdd366bf8be7c1f9c61a085 100644
(file)
--- 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);
}