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:
parent
90a38351c8
commit
87ab1a10b1
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user