From owner-cvs-all Tue Mar 5 2: 1:53 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4845437B402; Tue, 5 Mar 2002 02:01:46 -0800 (PST) Received: (from jeff@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g25A1kK87489; Tue, 5 Mar 2002 02:01:46 -0800 (PST) (envelope-from jeff) Message-Id: <200203051001.g25A1kK87489@freefall.freebsd.org> From: Jeff Roberson Date: Tue, 5 Mar 2002 02:01:46 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: 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 X-FreeBSD-CVS-Branch: HEAD 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 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. 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message