Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2011 19:36:12 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r221912 - projects/largeSMP/sys/kern
Message-ID:  <201105141936.p4EJaC9k013399@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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