aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2008-03-10 01:38:53 +0000
committerJeff Roberson <jeff@FreeBSD.org>2008-03-10 01:38:53 +0000
commit1bf6461e9833c40b6c2272c283b405e6b16dc9c8 (patch)
treed86b4b5fbbdaa8d399ebf680cb7252e90da3dafb /sys
parent32c9d3a767419c712c556f4bcae588e1a976f502 (diff)
downloadsrc-1bf6461e9833c40b6c2272c283b405e6b16dc9c8.tar.gz
src-1bf6461e9833c40b6c2272c283b405e6b16dc9c8.zip
- Add the missing '2' case to the switch table for kern.smp.topology and
assign it to create the flat 'none' topology where all cpus are scheduled as if they are equal and unrelated.
Notes
Notes: svn path=/head/; revision=177007
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_smp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
index 9c30a4a344e7..b55cbb66ee3e 100644
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -405,6 +405,10 @@ smp_topo(void)
/* Dual core with no sharing. */
top = smp_topo_1level(CG_SHARE_NONE, 2, 0);
break;
+ case 2:
+ /* No topology, all cpus are equal. */
+ top = smp_topo_none();
+ break;
case 3:
/* Dual core with shared L2. */
top = smp_topo_1level(CG_SHARE_L2, 2, 0);