svn commit: r221912 - projects/largeSMP/sys/kern

Attilio Rao attilio at FreeBSD.org
Sat May 14 19:36:13 UTC 2011


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;


More information about the svn-src-projects mailing list