From: Yinghai Lu <Yinghai.Lu@Sun.COM>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Andi Kleen <ak@suse.de>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/5] console: console handover to preferred console
Date: Thu, 31 May 2007 17:16:35 -0700 [thread overview]
Message-ID: <465F6563.7060804@sun.com> (raw)
In-Reply-To: <20070531170200.3738f834.akpm@linux-foundation.org>
Andrew Morton wrote:
> On Thu, 31 May 2007 13:58:26 -0700
> Yinghai Lu <Yinghai.Lu@Sun.COM> wrote:
>
>> [PATCH 2/5] console: console handover to preferred console
>>
>> Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
>>
>> diff --git a/kernel/printk.c b/kernel/printk.c
>> index 0bbdeac..7b96cae 100644
>> --- a/kernel/printk.c
>> +++ b/kernel/printk.c
>> @@ -985,12 +1007,15 @@ void register_console(struct console *console)
>> if (!(console->flags & CON_ENABLED))
>> return;
>>
>> - if (bootconsole) {
>> + if (bootconsole && (console->flags & CON_CONSDEV)) {
>> printk(KERN_INFO "console handover: boot [%s%d] -> real [%s%d]\n",
>> bootconsole->name, bootconsole->index,
>> console->name, console->index);
>> unregister_console(bootconsole);
>> console->flags &= ~CON_PRINTBUFFER;
>> + } else {
>> + printk(KERN_INFO "console [%s%d] enabled\n",
>> + console->name, console->index);
>> }
>>
>> /*
>
> What does this change do, and what is the reason for it??
for earlyprintk=ttyS0,9600 console=tty0 console=ttyS0,9600n8
the handover will happen from earlyser0 to tty0. but what we want is to ttyS0.
later with patch4,
console=tty0 console=uart8250,io,0x3f8,9600n8
will handover to ttyS0 instead of tty0.
Maybe can put above lines into commit log.
YH
next prev parent reply other threads:[~2007-06-01 0:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-31 20:58 [PATCH 2/5] console: console handover to preferred console Yinghai Lu
2007-06-01 0:02 ` Andrew Morton
2007-06-01 0:16 ` Yinghai Lu [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-05-30 1:41 Yinghai Lu
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=465F6563.7060804@sun.com \
--to=yinghai.lu@sun.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.