From: Rusty Russell <rusty@rustcorp.com.au>
To: David Howells <dhowells@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [RFC 7/8] Call early_param earlier.
Date: Thu, 4 Dec 2008 10:17:23 +1030 [thread overview]
Message-ID: <200812041017.23599.rusty@rustcorp.com.au> (raw)
In-Reply-To: <5294.1228311850@redhat.com>
On Thursday 04 December 2008 00:14:10 David Howells wrote:
> Rusty Russell <rusty@rustcorp.com.au> wrote:
> > parse_args("Core params", boot_command_line, __start___core_param,
> > __stop___core_param - __start___core_param,
> > unknown_core_ok, true);
> > + /* All fall through to do_early_param. */
> > + parse_args("early options", boot_command_line, NULL, 0, do_early_param,
> > + true);
>
> Why have two separate lists since they are processed contiguously?
You're right. I don't think we care about people who have early_param of same
name as core_param; they deserve horrible death anyway.
param: combine core_param and early_param parsing.
David Howells points out that we can now do early_param and core_param
in a single pass of parse_args.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: David Howells <dhowells@redhat.com>
---
init/main.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/init/main.c b/init/main.c
--- a/init/main.c
+++ b/init/main.c
@@ -548,12 +548,10 @@ asmlinkage void __init start_kernel(void
asmlinkage void __init start_kernel(void)
{
arch_get_boot_command_line();
- parse_args("Core params", boot_command_line, __start___core_param,
+ parse_args("Core and early params", boot_command_line,
+ __start___core_param,
__stop___core_param - __start___core_param,
- unknown_core_ok, true);
- /* All fall through to do_early_param. */
- parse_args("early options", boot_command_line, NULL, 0, do_early_param,
- true);
+ do_early_param, true);
smp_setup_processor_id();
prev parent reply other threads:[~2008-12-03 23:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 12:56 [RFC 7/8] Call early_param earlier Rusty Russell
2008-12-03 3:21 ` [RFC 7/8] Call early_param earlier (take II) Rusty Russell
2008-12-03 13:44 ` [RFC 7/8] Call early_param earlier David Howells
2008-12-03 23:47 ` Rusty Russell [this message]
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=200812041017.23599.rusty@rustcorp.com.au \
--to=rusty@rustcorp.com.au \
--cc=dhowells@redhat.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox