Lines Matching refs:leaf
287 cpu_node_t *leaf, *parent; in build_cpu_topology() local
295 leaf = get_cpu_node_by_cpuid(i); in build_cpu_topology()
297 KASSERT(leaf != NULL, ("cpu %d NULL node", i)); in build_cpu_topology()
298 if (leaf->type == CORE_LEVEL) { in build_cpu_topology()
299 parent = leaf->parent_node; in build_cpu_topology()
301 last_free_node->child_node[0] = leaf; in build_cpu_topology()
303 last_free_node->members = leaf->members; in build_cpu_topology()
304 … last_free_node->compute_unit_id = leaf->compute_unit_id; in build_cpu_topology()
310 if (parent->child_node[j] != leaf) { in build_cpu_topology()
314 … parent->child_node[j]->compute_unit_id == leaf->compute_unit_id) { in build_cpu_topology()
334 leaf->type = THREAD_LEVEL; in build_cpu_topology()
335 leaf->parent_node = last_free_node; in build_cpu_topology()