public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Hugh Dickins <hugh@veritas.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Len Brown <len.brown@intel.com>, Andi Kleen <ak@suse.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] fix maxcpus=N parsing
Date: Wed, 29 Aug 2007 03:58:16 +1000	[thread overview]
Message-ID: <1188323896.5531.63.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.64.0708271554570.21853@blonde.wat.veritas.com>

On Mon, 2007-08-27 at 16:02 +0100, Hugh Dickins wrote:
> Fix 61ec7567db103d537329b0db9a887db570431ff4: maxcpus=N is now having no
> effect on x86_64, and freezing bootup on i386 (because of inconsistency
> with the separate maxcpus parsing down in arch/i386, I guess).  That's
> because early_param parsing is a little different from __setup parsing,
> and needs the "=" omitted: then it seems to work as the original commit
> intended (no mention of IO-APIC in /proc/interrupts when maxcpus=0).
> 
> Signed-off-by: Hugh Dickins <hugh@veritas.com>
> ---
> Sorry, I noticed this back in -mm, but got diverted by deeper mysteries.
> Cc'ed Rusty: I presume there's a good reason why early_param parsing is
> confusingly different, but he may know better and want to change it.

Yeah, early_param is modelled on module_param which does more than the
naive substring match of __setup.  There's a warning in the header IIRC.

The original intention wass that everything would move to
module_param-style parameters.  However __setup is still useful for
trivial core stuff.

> It's odd that i386 treats maxcpus=N differently from other architectures:
> on i386 it limits cpu_possible_map, on others it just limits what boots
> (then powersaved is liable to bring up the others on x86_64 - hmmm).

Indeed, it'd be nice to see this made uniform.

But this patch is fine.

Cheers,
Rusty.


      parent reply	other threads:[~2007-08-28 17:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-27 15:02 [PATCH] fix maxcpus=N parsing Hugh Dickins
2007-08-27 17:20 ` Linus Torvalds
2007-08-27 20:53   ` Hugh Dickins
2007-08-28 17:58 ` 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=1188323896.5531.63.camel@localhost.localdomain \
    --to=rusty@rustcorp.com.au \
    --cc=ak@suse.de \
    --cc=akpm@linux-foundation.org \
    --cc=hugh@veritas.com \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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