linux-mips
[Top] [All Lists]

[PATCH 2/2] early_printk: allow the early console to run earlier

To: ralf@linux-mips.org
Subject: [PATCH 2/2] early_printk: allow the early console to run earlier
From: Franck Bui-Huu <vagabon.xyz@gmail.com>
Date: Wed, 28 Mar 2007 08:51:30 +0200
Cc: linux-mips@linux-mips.org
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=sakjqrabotrKktXTQ0ChNisXej4vAXK1uLhydHsRma9MUYKY+HuxyZoZafqznOdAv4/3XbRi+FfuHGhsB83IHL+3krfE+2Fo824svRSvwyj7GQx7q99784mHQwlCPWU8OQU9WGYPQQv6RwP82npZqqqYXbRQOox7zFYcF9kPW2k=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:to:cc:subject:date:message-id:x-mailer:in-reply-to:references:from; b=ns80NuXa2g0fY9olQu6O+KmasVyHesZ8fVZf/75gOS3FNWcgqIqZxsceC4rqhPgb+mMlRXIMqmTJqwv8K2pnQKb/R3quit7THSnq2G9QWfMTflWZXpF4jf1/bVq4/Na1vDCKnSBM4+qvpfYcA4mdlc951eSA3WCH1xpDTEZ0Rgw=
In-reply-to: <11750646902981-git-send-email-fbuihuu@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20070327175733.GA26496@linux-mips.org> <11750646902981-git-send-email-fbuihuu@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
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


<Prev in Thread] Current Thread [Next in Thread>