summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2008-03-02 07:58:42 +0000
committerjeff <jeff@FreeBSD.org>2008-03-02 07:58:42 +0000
commitad2a31513f336da73b206794695829f59113b3a7 (patch)
treea49a50ce8694ae981e503de20b9650bb0f5a1776 /sys/sparc64
parent0a56287482dbdc42be0a66082c61cf783dd56d5f (diff)
downloadFreeBSD-src-ad2a31513f336da73b206794695829f59113b3a7.zip
FreeBSD-src-ad2a31513f336da73b206794695829f59113b3a7.tar.gz
- Remove the old smp cpu topology specification with a new, more flexible
tree structure that encodes the level of cache sharing and other properties. - Provide several convenience functions for creating one and two level cpu trees as well as a default flat topology. The system now always has some topology. - On i386 and amd64 create a seperate level in the hierarchy for HTT and multi-core cpus. This will allow the scheduler to intelligently load balance non-uniform cores. Presently we don't detect what level of the cache hierarchy is shared at each level in the topology. - Add a mechanism for testing common topologies that have more information than the MD code is able to provide via the kern.smp.topology tunable. This should be considered a debugging tool only and not a stable api. Sponsored by: Nokia
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/mp_machdep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/mp_machdep.c b/sys/sparc64/sparc64/mp_machdep.c
index d005f8a..1eef281 100644
--- a/sys/sparc64/sparc64/mp_machdep.c
+++ b/sys/sparc64/sparc64/mp_machdep.c
@@ -189,6 +189,13 @@ cpu_mp_probe(void)
return (mp_maxid > 0);
}
+struct cpu_group *
+cpu_topo(void)
+{
+
+ return smp_topo_none();
+}
+
static void
sun4u_startcpu(phandle_t cpu, void *func, u_long arg)
{
OpenPOWER on IntegriCloud