mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-15 06:42:51 +01:00
[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:
parent
3c065eeaa7
commit
bd94c8ab29
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user