Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266864AbUAXCgZ (ORCPT ); Fri, 23 Jan 2004 21:36:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266858AbUAXCdD (ORCPT ); Fri, 23 Jan 2004 21:33:03 -0500 Received: from mail-03.iinet.net.au ([203.59.3.35]:8413 "HELO mail.iinet.net.au") by vger.kernel.org with SMTP id S266851AbUAXCbj (ORCPT ); Fri, 23 Jan 2004 21:31:39 -0500 Message-ID: <4011D7AF.8030205@cyberone.com.au> Date: Sat, 24 Jan 2004 13:25:51 +1100 From: Nick Piggin User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030827 Debian/1.4-3 X-Accept-Language: en MIME-Version: 1.0 To: Eric CC: linux-kernel@vger.kernel.org, davej@redhat.com Subject: Re: Correct CPUs printout on boot. References: <200401231703.54127.eric@cisu.net> In-Reply-To: <200401231703.54127.eric@cisu.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 829 Lines: 25 Eric wrote: >On Friday 23 January 2004 12:35 am, davej@redhat.com wrote: > >>This currently prints out the maximum number of CPUs the >>kernel is configured to support, instead of the actual >>number that the kernel brought up. Which results in odd >>displays that look like you have more CPUs than you do. >> > >Why do you have to declare a new variable? Can't you just do this? i is >already counting how many cpu's we've brought up and its of the same type j. > CPU numbering is allowed to be sparse. Besides, i still counts up to NR_CPUS even if CPU numbering isn't sparse. - 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/