svn commit: r222201 - head/sys/kern

Attilio Rao attilio at FreeBSD.org
Sun May 22 21:35:03 UTC 2011


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;


More information about the svn-src-head mailing list