From owner-cvs-all Sat Mar 9 8:35:36 2002 Delivered-To: cvs-all@freebsd.org Received: from finch-post-11.mail.demon.net (finch-post-11.mail.demon.net [194.217.242.39]) by hub.freebsd.org (Postfix) with ESMTP id 0330337B402; Sat, 9 Mar 2002 08:35:30 -0800 (PST) Received: from mailgate.nlsystems.com ([62.49.251.130] helo=herring.nlsystems.com) by finch-post-11.mail.demon.net with esmtp (Exim 3.35 #1) id 16jjoe-000KzM-0B; Sat, 09 Mar 2002 16:35:28 +0000 Received: from salmon.nlsystems.com (salmon [10.0.0.3]) by herring.nlsystems.com (8.11.2/8.11.2) with ESMTP id g29GYD980155; Sat, 9 Mar 2002 16:34:13 GMT (envelope-from dfr@nlsystems.com) Date: Sat, 9 Mar 2002 16:31:12 +0000 (GMT) From: Doug Rabson To: Jeff Roberson Cc: , Subject: Re: cvs commit: src/sys/sys smp.h src/sys/kern subr_smp.c src/sys/i386/i386 mp_machdep.c src/sys/alpha/alpha mp_machdep.c In-Reply-To: <200203051001.g25A1kK87489@freefall.freebsd.org> Message-ID: <20020309162845.H504-100000@salmon.nlsystems.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 5 Mar 2002, Jeff Roberson wrote: > jeff 2002/03/05 02:01:46 PST > > Modified files: > sys/sys smp.h > sys/kern subr_smp.c > sys/i386/i386 mp_machdep.c > sys/alpha/alpha mp_machdep.c > Log: > Add a new variable mp_maxid. This is used so that per cpu datastructures may > be allocated as arrays indexed by the cpu id. Previously the only reliable > way to know the max cpu id was through MAXCPU. mp_ncpus isn't useful here > because cpu ids may be sparsely mapped, although x86 and alpha do not do this. > > Also, call cpu_mp_probe much earlier so the max cpu id is known before the VM > starts up. This is intended to help support per cpu queues for the new > allocator, but may be useful elsewhere. This screws up the SMP probe for ia64 because the information which cpu_mp_probe() uses isn't available until after cpu_startup() is called (i.e. SI_SUB_CPU:SI_ORDER_FIRST). The code in the ia64 platform which detects SMP can't (currently) run before the VM system is started... -- Doug Rabson Mail: dfr@nlsystems.com Phone: +44 20 8348 6160 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message