[PowerPC] Fix NUMA checking for powernv

At this point in startup, vm_ndomains has not been initialized. Switch
to checking kenv instead.

Fixes incorrect NUMA information being set on multi-domain systems like
Talos II.

Submitted by:	jhibbits
MFC after:	2 weeks
This commit is contained in:
Brandon Bergren 2021-03-27 20:41:45 -05:00
parent 3c065eeaa7
commit bd94c8ab29

View File

@ -532,7 +532,9 @@ powernv_node_numa_domain(platform_t platform, phandle_t node)
#ifndef NUMA #ifndef NUMA
return (0); return (0);
#endif #endif
if (vm_ndomains == 1) i = 0;
TUNABLE_INT_FETCH("vm.numa.disabled", &i);
if (i)
return (0); return (0);
res = OF_getencprop(node, "ibm,associativity", res = OF_getencprop(node, "ibm,associativity",