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:
Mark Johnston 2018-10-23 18:07:16 +00:00
parent 90a38351c8
commit 87ab1a10b1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339664
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;