Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263766AbTKXQuE (ORCPT ); Mon, 24 Nov 2003 11:50:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263777AbTKXQuE (ORCPT ); Mon, 24 Nov 2003 11:50:04 -0500 Received: from fmr04.intel.com ([143.183.121.6]:5863 "EHLO caduceus.sc.intel.com") by vger.kernel.org with ESMTP id S263766AbTKXQuB (ORCPT ); Mon, 24 Nov 2003 11:50:01 -0500 Subject: Re: not fixed in 2.4.23-rc3 (was: Re: 2.4.22 SMP kernel build for hyper threading P4) From: Len Brown To: William Lee Irwin III Cc: Eduard Bloch , linux-kernel@vger.kernel.org, davej@redhat.com In-Reply-To: <20031124070016.GX22764@holomorphy.com> References: <20031123204532.GA6093@zombie.inka.de> <1069654747.2812.689.camel@dhcppc4> <20031124070016.GX22764@holomorphy.com> Content-Type: text/plain Organization: Message-Id: <1069692557.3035.17.camel@dhcppc4> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.3 Date: 24 Nov 2003 11:49:18 -0500 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 878 Lines: 29 On Mon, 2003-11-24 at 02:00, William Lee Irwin III wrote: > A similar (but more elaborate) fix is in 2.6. Why is the additional variable "kicked" in 2.6 necessary? Appears that kicked == (cpucount + 1), and the loop already compares that to NR_CPUS via max_cpus: if (max_cpus <= cpucount+1) continue; Though I think it would read more clearly this way: if (cpucount + 1 >= max_cpus) break; Speaking of max_cpus, it would probably be a good thing if maxcpus() did not allow the administrator to set max_cpus > NR_CPUS at boot time. cheers, -Len - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/