From: Franck Bui-Huu <vagabon.xyz@gmail.com>
To: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org
Subject: [PATCH 2/2] early_printk: allow the early console to run earlier
Date: Wed, 28 Mar 2007 08:51:30 +0200 [thread overview]
Message-ID: <11750646903145-git-send-email-fbuihuu@gmail.com> (raw)
In-Reply-To: <11750646902981-git-send-email-fbuihuu@gmail.com>
From: Franck Bui-Huu <fbuihuu@gmail.com>
Signed-off-by: Franck Bui-Huu <fbuihuu@gmail.com>
---
arch/mips/kernel/early_printk.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/mips/kernel/early_printk.c b/arch/mips/kernel/early_printk.c
index 57ba73a..f68f82f 100644
--- a/arch/mips/kernel/early_printk.c
+++ b/arch/mips/kernel/early_printk.c
@@ -30,8 +30,14 @@ 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);
}
--
1.5.1.rc1.27.g1d848
next prev parent reply other threads:[~2007-03-28 7:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-27 14:16 Early printk recent changes Franck Bui-Huu
2007-03-27 14:31 ` Maciej W. Rozycki
2007-03-27 15:03 ` Franck Bui-Huu
2007-03-27 15:38 ` Maciej W. Rozycki
2007-03-27 16:06 ` Franck Bui-Huu
2007-03-27 17:57 ` Ralf Baechle
2007-03-28 6:51 ` [PATCH 1/2] early_printk: use init section Franck Bui-Huu
2007-03-28 6:51 ` Franck Bui-Huu [this message]
2007-03-28 7:37 ` Early printk recent changes Franck Bui-Huu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11750646903145-git-send-email-fbuihuu@gmail.com \
--to=vagabon.xyz@gmail.com \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox