In 2.6-dev1, NUMA topology detection was enabled on FreeBSD with commit
f5d48f8b3 ("MEDIUM: cfgparse: numa detect topology on FreeBSD."). But
it suffers from a minor bug which is that it forgets to check for the
number of domains and always emits a confusing warning indicating that
multiple sockets were found while it's not the case.
This can be backported to 2.6.
BUG_ON(ndomains > MAXMEMDOM);
ha_cpuset_zero(&node_cpu_set);
+ if (ndomains < 2)
+ goto leave;
+
/*
* We retrieve the first active valid CPU domain
* with active cpu and binding it, we returns
}
break;
}
-
+ leave:
return ha_cpuset_count(&node_cpu_set);
}