diff options
author | jhb <jhb@FreeBSD.org> | 2016-04-09 13:58:04 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-04-09 13:58:04 +0000 |
commit | 6beb82443a9241c4c9035f9b1df9d1358154592c (patch) | |
tree | cd8ee1473372af94096c75121cdad26c77602e58 /sys/dev/acpica/acpi.c | |
parent | ae5846b336d36050c2a80b867d117f4bf2f3d907 (diff) | |
download | FreeBSD-src-6beb82443a9241c4c9035f9b1df9d1358154592c.zip FreeBSD-src-6beb82443a9241c4c9035f9b1df9d1358154592c.tar.gz |
Add more fine-grained kernel options for NUMA support.
VM_NUMA_ALLOC is used to enable use of domain-aware memory allocation in
the virtual memory system. DEVICE_NUMA is used to enable affinity
reporting for devices such as bus_get_domain().
MAXMEMDOM must still be set to a value greater than for any NUMA support
to be effective. Note that 'cpuset -gd' always works if MAXMEMDOM is
enabled and the system supports NUMA.
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D5782
Diffstat (limited to 'sys/dev/acpica/acpi.c')
-rw-r--r-- | sys/dev/acpica/acpi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 6f5a11f..32a07dd 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -31,6 +31,8 @@ __FBSDID("$FreeBSD$"); #include "opt_acpi.h" +#include "opt_device_numa.h" + #include <sys/param.h> #include <sys/kernel.h> #include <sys/proc.h> @@ -1083,7 +1085,7 @@ acpi_hint_device_unit(device_t acdev, device_t child, const char *name, int acpi_parse_pxm(device_t dev, int *domain) { -#if MAXMEMDOM > 1 +#ifdef DEVICE_NUMA ACPI_HANDLE h; int d, pxm; |