From owner-svn-src-projects@FreeBSD.ORG Tue May 3 18:48:06 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAD46106566C; Tue, 3 May 2011 18:48:06 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CAD5B8FC08; Tue, 3 May 2011 18:48:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p43Im6V8006598; Tue, 3 May 2011 18:48:06 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p43Im6At006596; Tue, 3 May 2011 18:48:06 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201105031848.p43Im6At006596@svn.freebsd.org> From: Attilio Rao Date: Tue, 3 May 2011 18:48:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r221396 - projects/largeSMP/sys/sys X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2011 18:48:06 -0000 Author: attilio Date: Tue May 3 18:48:06 2011 New Revision: 221396 URL: http://svn.freebsd.org/changeset/base/221396 Log: Add a comment explaining the discrepancy in size between kernel and userland of cpuset_t. Discussed with: jhb Modified: projects/largeSMP/sys/sys/cpuset.h Modified: projects/largeSMP/sys/sys/cpuset.h ============================================================================== --- projects/largeSMP/sys/sys/cpuset.h Tue May 3 18:36:36 2011 (r221395) +++ projects/largeSMP/sys/sys/cpuset.h Tue May 3 18:48:06 2011 (r221396) @@ -36,6 +36,10 @@ #define CPU_SETSIZE MAXCPU #endif +/* + * In userland a bigger cpuset structure is preferable in order to cope + * with kernel bumping of MAXCPU and still have a compatible layout. + */ #define CPU_MAXSIZE (4 * MAXCPU) #ifndef CPU_SETSIZE