From owner-cvs-src@FreeBSD.ORG Sat Mar 20 12:41:41 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25EC916A4CF; Sat, 20 Mar 2004 12:41:41 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FE2543D2D; Sat, 20 Mar 2004 12:41:41 -0800 (PST) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2KKfeGe023029; Sat, 20 Mar 2004 12:41:40 -0800 (PST) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2KKfejR023025; Sat, 20 Mar 2004 12:41:40 -0800 (PST) (envelope-from marcel) Message-Id: <200403202041.i2KKfejR023025@repoman.freebsd.org> From: Marcel Moolenaar Date: Sat, 20 Mar 2004 12:41:40 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/alpha/include _types.h src/sys/amd64/include _types.h src/sys/arm/include _types.h src/sys/i386/include _types.h src/sys/ia64/include _types.h src/sys/powerpc/include _types.h src/sys/sparc64/include _types.h src/sys/sys types.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2004 20:41:41 -0000 marcel 2004/03/20 12:41:40 PST FreeBSD src repository Modified files: sys/alpha/include _types.h sys/amd64/include _types.h sys/arm/include _types.h sys/i386/include _types.h sys/ia64/include _types.h sys/powerpc/include _types.h sys/sparc64/include _types.h sys/sys types.h Log: Introduce the cpumask_t type. The purpose of the type is to create a level of abstraction for any and all CPU mask and CPU bitmap variables so that platforms have the ability to break free from the hard limit of 32 CPUs, simply because we don't have more bits in an u_int. Note that the type is not supposed to solve massive parallelism, where the number of CPUs can be larger than the width of the widest integral type. As such, cpumask_t is not supposed to be a compound type. If such would be necessary in the future, we can deal with the issues then and there. For now, it can be assumed that the type is integral and unsigned. With this commit, all MD definitions start off as u_int. This allows us to phase-in cpumask_t at our leasure without breaking anything. Once cpumask_t is used consistently, platforms can switch to wider (or smaller) types if such would be beneficial (or not; whatever :-) Compile-tested on: i386 Revision Changes Path 1.5 +1 -0 src/sys/alpha/include/_types.h 1.6 +1 -0 src/sys/amd64/include/_types.h 1.4 +1 -0 src/sys/arm/include/_types.h 1.9 +1 -0 src/sys/i386/include/_types.h 1.8 +1 -0 src/sys/ia64/include/_types.h 1.6 +1 -0 src/sys/powerpc/include/_types.h 1.6 +1 -0 src/sys/sparc64/include/_types.h 1.84 +1 -0 src/sys/sys/types.h