powerpc/powernv: powernv_node_numa_domain() fix non-NUMA case
If NUMA is not enabled in the kernel config, or is disabled at boot, this function should just return domain 0 regardless of what's in the device tree. Fixes a panic in iflib with NUMA disabled. Reported by: luporl
This commit is contained in:
parent
3580f3cfec
commit
6df6aae9bd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358565
@ -517,6 +517,12 @@ powernv_node_numa_domain(platform_t platform, phandle_t node)
|
||||
cell_t associativity[5];
|
||||
int i, res;
|
||||
|
||||
#ifndef NUMA
|
||||
return (0);
|
||||
#endif
|
||||
if (vm_ndomains == 1)
|
||||
return (0);
|
||||
|
||||
res = OF_getencprop(node, "ibm,associativity",
|
||||
associativity, sizeof(associativity));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user