Initialize static domainsets regardless of whether an SRAT is present.

Reported by:	yuripv
X-MFC with:	r339452
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
markj 2018-10-23 18:07:16 +00:00
parent ef94e64770
commit 875935f8c5
2 changed files with 6 additions and 2 deletions

View File

@ -68,6 +68,7 @@
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/domainset.h>
#include <sys/kernel.h>
#include <sys/lock.h>
#include <sys/proc.h>
@ -116,6 +117,11 @@ static void
vm_mem_init(void *dummy)
{
/*
* Initialize static domainsets, used by various allocators.
*/
domainset_init();
/*
* Initializes resident memory structures. From here on, all physical
* memory is accounted for, and we use only virtual addresses.

View File

@ -616,8 +616,6 @@ vm_phys_register_domains(int ndomains, struct mem_affinity *affinity,
for (i = 0; i < vm_ndomains; i++)
DOMAINSET_SET(i, &all_domains);
domainset_init();
#else
(void)ndomains;
(void)affinity;