summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2011-02-11 22:43:10 +0000
committerjmallett <jmallett@FreeBSD.org>2011-02-11 22:43:10 +0000
commit96da23f4720c83bf6155b1b57ac4798cefe2b61a (patch)
tree93bb0c95fc088858814b1f504fb8d9c99b4070a3
parenta2a1f19028c839068a55d57ff142aa01fc4e2821 (diff)
downloadFreeBSD-src-96da23f4720c83bf6155b1b57ac4798cefe2b61a.zip
FreeBSD-src-96da23f4720c83bf6155b1b57ac4798cefe2b61a.tar.gz
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
-rw-r--r--sys/kern/subr_smp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
index 7e85d25..9ae6381 100644
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -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;
OpenPOWER on IntegriCloud