svn commit: r222437 - stable/8/sys/kern

Attilio Rao attilio at FreeBSD.org
Sun May 29 02:10:57 UTC 2011


Author: attilio
Date: Sun May 29 02:10:57 2011
New Revision: 222437
URL: http://svn.freebsd.org/changeset/base/222437

Log:
  MFC r222201:
  Fill the whole cpuset_t, not only the first object.

Modified:
  stable/8/sys/kern/kern_cpuset.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/kern/kern_cpuset.c
==============================================================================
--- stable/8/sys/kern/kern_cpuset.c	Sun May 29 02:09:09 2011	(r222436)
+++ stable/8/sys/kern/kern_cpuset.c	Sun May 29 02:10:57 2011	(r222437)
@@ -681,7 +681,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-stable-8 mailing list