/* In any case the ibm,associativity-reference-points should give the correct depth for a normal NUMA system. */
static int __init find_min_common_depth(void)
/* In any case the ibm,associativity-reference-points should give the correct depth for a normal NUMA system. */
static int __init find_min_common_depth(void)
{
	int depth;
	const unsigned int *ref_points;
	struct device_node *rtas_root;
	unsigned int len;
	rtas_root = of_find_node_by_path("/rtas");
	if (!rtas_root)
		return -1;
	ref_points = of_get_property(rtas_root,
			"ibm,associativity-reference-points", &len);
	if ((len >= 2 * sizeof(unsigned int)) && ref_points) {
		depth = ref_points[1];
	} else {
		dbg("NUMA: ibm,associativity-reference-points not found.\n");
		depth = -1;
	}
	of_node_put(rtas_root);
	return depth;
}