From owner-cvs-all Tue Mar 5 7:53: 5 2002 Delivered-To: cvs-all@freebsd.org Received: from mail6.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by hub.freebsd.org (Postfix) with ESMTP id EF98637B428 for ; Tue, 5 Mar 2002 07:52:21 -0800 (PST) Received: (qmail 4032 invoked from network); 5 Mar 2002 15:52:11 -0000 Received: from unknown (HELO server.baldwin.cx) ([65.91.137.49]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 5 Mar 2002 15:52:11 -0000 Received: from laptop.baldwin.cx (john@laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g25Fq4G57138; Tue, 5 Mar 2002 10:52:04 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200203051001.g25A1kK87489@freefall.freebsd.org> Date: Tue, 05 Mar 2002 10:51:52 -0500 (EST) From: John Baldwin To: Jeff Roberson Subject: RE: cvs commit: src/sys/sys smp.h src/sys/kern subr_smp.c src/sy Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org 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 05-Mar-02 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. Actually, alpha ID's can be sparse as they are just phyiscal ID's which are tied to the slots the CPU's are in. > 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. > > Reviewed by: jake > Approved by: jake > > Revision Changes Path > 1.34 +2 -0 src/sys/alpha/alpha/mp_machdep.c > 1.179 +4 -1 src/sys/i386/i386/mp_machdep.c > 1.163 +14 -2 src/sys/kern/subr_smp.c > 1.70 +1 -0 src/sys/sys/smp.h -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message