/* Detect best pool mapping mode heuristically, according to the machine's topology.  */
static int svc_pool_map_choose_mode(void)
/* Detect best pool mapping mode heuristically, according to the machine's topology.  */
static int svc_pool_map_choose_mode(void)
{
	unsigned int node;
	if (nr_online_nodes > 1) {
		return SVC_POOL_PERNODE;
	}
	node = any_online_node(node_online_map);
	if (nr_cpus_node(node) > 2) {
		return SVC_POOL_PERCPU;
	}
	return SVC_POOL_GLOBAL;
}