diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2008-03-10 01:38:53 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2008-03-10 01:38:53 +0000 |
commit | 1bf6461e9833c40b6c2272c283b405e6b16dc9c8 (patch) | |
tree | d86b4b5fbbdaa8d399ebf680cb7252e90da3dafb /sys | |
parent | 32c9d3a767419c712c556f4bcae588e1a976f502 (diff) | |
download | src-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.c | 4 |
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); |