From owner-svn-src-projects@FreeBSD.ORG Sat May 14 19:36:12 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 F16E9106564A; Sat, 14 May 2011 19:36:12 +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 E12A88FC1C; Sat, 14 May 2011 19:36:12 +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 p4EJaCLW013401; Sat, 14 May 2011 19:36:12 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4EJaC9k013399; Sat, 14 May 2011 19:36:12 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201105141936.p4EJaC9k013399@svn.freebsd.org> From: Attilio Rao Date: Sat, 14 May 2011 19:36:12 +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: r221912 - projects/largeSMP/sys/kern 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: Sat, 14 May 2011 19:36:13 -0000 Author: attilio Date: Sat May 14 19:36:12 2011 New Revision: 221912 URL: http://svn.freebsd.org/changeset/base/221912 Log: Fix a longstanding bug where only the first part of the cpumask was correctly set full. Submitted by: anonymous Modified: projects/largeSMP/sys/kern/kern_cpuset.c Modified: projects/largeSMP/sys/kern/kern_cpuset.c ============================================================================== --- projects/largeSMP/sys/kern/kern_cpuset.c Sat May 14 19:27:15 2011 (r221911) +++ projects/largeSMP/sys/kern/kern_cpuset.c Sat May 14 19:36:12 2011 (r221912) @@ -719,7 +719,7 @@ cpuset_thread0(void) * cpuset_create() due to NULL parent. */ set = uma_zalloc(cpuset_zone, M_WAITOK | M_ZERO); - set->cs_mask.__bits[0] = -1; + CPU_FILL(&set->cs_mask); LIST_INIT(&set->cs_children); LIST_INSERT_HEAD(&cpuset_ids, set, cs_link); set->cs_ref = 1;