From: "Jan Beulich" Subject: Re: [PATCH] linux: don't bring up CPUs that can never be used Date: Mon, 14 Aug 2006 15:23:50 +0200 Message-ID: <44E09586.76E4.0078.0@novell.com> References: <44E0904E.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >> Without this, "nosmp" or "max_cpus=" Linux command line options are >> being ignored. >> >> Signed-off-by: Jan Beulich > >I'm a little bit wary of the second hunk. Although it's probably okay, is it >actually required? Looks like the first hunk is what fixes the issue. It's probably not strictly required, but sill better than iterating over NR_CPUS, as that is what mainline is in the process of phasing out. The only difference I can see to the results of the original code is that for cpu 0 the two array members now also get (re-)initialized here - but the value stored should be the same as may have been stored earlier. Jan