summaryrefslogtreecommitdiffstats
path: root/sys/sys/smp.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2015-01-08 15:53:13 +0000
committerjhb <jhb@FreeBSD.org>2015-01-08 15:53:13 +0000
commit06e75f0dba830c7814f7c902918c6b00e3cb9f80 (patch)
treea8c0b10964b6a43594a95c578b257a516b7998a9 /sys/sys/smp.h
parent7b0cd0edc9886415c53b5df6eb32e24e3f7df633 (diff)
downloadFreeBSD-src-06e75f0dba830c7814f7c902918c6b00e3cb9f80.zip
FreeBSD-src-06e75f0dba830c7814f7c902918c6b00e3cb9f80.tar.gz
Create a cpuset mask for each NUMA domain that is available in the
kernel via the global cpuset_domain[] array. To export these to userland, add a CPU_WHICH_DOMAIN level that can be used to fetch the mask for a specific domain. Add a -d flag to cpuset(1) that can be used to fetch the mask for a given domain. Differential Revision: https://reviews.freebsd.org/D1232 Submitted by: jeff (kernel bits) Reviewed by: adrian, jeff
Diffstat (limited to 'sys/sys/smp.h')
-rw-r--r--sys/sys/smp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/smp.h b/sys/sys/smp.h
index 42cb8df..58b1754 100644
--- a/sys/sys/smp.h
+++ b/sys/sys/smp.h
@@ -85,6 +85,7 @@ extern int mp_ncpus;
extern volatile int smp_started;
extern cpuset_t all_cpus;
+extern cpuset_t cpuset_domain[MAXMEMDOM]; /* CPUs in each NUMA domain. */
/*
* Macro allowing us to determine whether a CPU is absent at any given
OpenPOWER on IntegriCloud