Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2011 22:43:10 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218584 - head/sys/kern
Message-ID:  <201102112243.p1BMhAUc076352@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmallett
Date: Fri Feb 11 22:43:10 2011
New Revision: 218584
URL: http://svn.freebsd.org/changeset/base/218584

Log:
  With smp_topo_none, set cg_mask to all_cpus rather than setting the mp_ncpus
  low bits.
  
  Submitted by:	Bhanu Prakash
  Reviewed by:	jeffr

Modified:
  head/sys/kern/subr_smp.c

Modified: head/sys/kern/subr_smp.c
==============================================================================
--- head/sys/kern/subr_smp.c	Fri Feb 11 19:49:07 2011	(r218583)
+++ head/sys/kern/subr_smp.c	Fri Feb 11 22:43:10 2011	(r218584)
@@ -476,7 +476,7 @@ smp_topo_none(void)
 	top = &group[0];
 	top->cg_parent = NULL;
 	top->cg_child = NULL;
-	top->cg_mask = ~0U >> (32 - mp_ncpus);
+	top->cg_mask = all_cpus;
 	top->cg_count = mp_ncpus;
 	top->cg_children = 0;
 	top->cg_level = CG_SHARE_NONE;



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