diff options
author | attilio <attilio@FreeBSD.org> | 2013-05-07 22:46:24 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2013-05-07 22:46:24 +0000 |
commit | b24a52ec9e4e733ae0b5b5932af72cf6fc7d5752 (patch) | |
tree | c6aaa29a3a53aeb1e8a30aaca92924124e0457e3 /sys/x86 | |
parent | dda6e068736ebb6565141c87715edf0526db5390 (diff) | |
download | FreeBSD-src-b24a52ec9e4e733ae0b5b5932af72cf6fc7d5752.zip FreeBSD-src-b24a52ec9e4e733ae0b5b5932af72cf6fc7d5752.tar.gz |
Rename VM_NDOMAIN into MAXMEMDOM and move it into machine/param.h in
order to match the MAXCPU concept. The change should also be useful
for consolidation and consistency.
Sponsored by: EMC / Isilon storage division
Obtained from: jeff
Reviewed by: alc
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/acpica/srat.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/x86/acpica/srat.c b/sys/x86/acpica/srat.c index d440de7..8737688 100644 --- a/sys/x86/acpica/srat.c +++ b/sys/x86/acpica/srat.c @@ -28,8 +28,6 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); -#include "opt_vm.h" - #include <sys/param.h> #include <sys/bus.h> #include <sys/kernel.h> @@ -47,7 +45,7 @@ __FBSDID("$FreeBSD$"); #include <dev/acpica/acpivar.h> -#if VM_NDOMAIN > 1 +#if MAXMEMDOM > 1 struct cpu_info { int enabled:1; int has_memory:1; @@ -265,7 +263,7 @@ renumber_domains(void) domains[j] = domains[j - 1]; domains[slot] = mem_info[i].domain; ndomain++; - if (ndomain > VM_NDOMAIN) { + if (ndomain > MAXMEMDOM) { printf("SRAT: Too many memory domains\n"); return (EFBIG); } @@ -362,4 +360,4 @@ srat_set_cpus(void *dummy) } } SYSINIT(srat_set_cpus, SI_SUB_CPU, SI_ORDER_ANY, srat_set_cpus, NULL); -#endif /* VM_NDOMAIN > 1 */ +#endif /* MAXMEMDOM > 1 */ |