Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2011 21:35:03 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222201 - head/sys/kern
Message-ID:  <201105222135.p4MLZ3oM091603@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Sun May 22 21:35:03 2011
New Revision: 222201
URL: http://svn.freebsd.org/changeset/base/222201

Log:
  Merge r221912 from largeSMP project branch:
  Fix a long-standing bug in cpuset_thread0() where only the first part
  of cs_mask is set full.
  
  Submitted by:	anonymous
  MFC after:	1 week

Modified:
  head/sys/kern/kern_cpuset.c

Modified: head/sys/kern/kern_cpuset.c
==============================================================================
--- head/sys/kern/kern_cpuset.c	Sun May 22 21:31:36 2011	(r222200)
+++ head/sys/kern/kern_cpuset.c	Sun May 22 21:35:03 2011	(r222201)
@@ -676,7 +676,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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105222135.p4MLZ3oM091603>