Lines Matching refs:numa
178 static struct toptree *node_for_core(struct toptree *numa, struct toptree *core, in node_for_core() argument
187 toptree_for_each(node, numa, NODE) { in node_for_core()
208 static void toptree_to_numa_single(struct toptree *numa, struct toptree *phys, in toptree_to_numa_single() argument
214 node = node_for_core(numa, core, extra); in toptree_to_numa_single()
248 static void move_level_to_numa(struct toptree *numa, struct toptree *phys, in move_level_to_numa() argument
253 toptree_for_each(node, numa, NODE) in move_level_to_numa()
260 static void toptree_to_numa_first(struct toptree *numa, struct toptree *phys) in toptree_to_numa_first() argument
265 move_level_to_numa(numa, phys, BOOK, true); in toptree_to_numa_first()
266 move_level_to_numa(numa, phys, BOOK, false); in toptree_to_numa_first()
267 move_level_to_numa(numa, phys, MC, true); in toptree_to_numa_first()
268 move_level_to_numa(numa, phys, MC, false); in toptree_to_numa_first()
270 toptree_for_each(core, numa, CORE) in toptree_to_numa_first()
315 struct toptree *numa; in toptree_to_numa() local
320 numa = toptree_new(TOPTREE_ID_NUMA, emu_nodes); in toptree_to_numa()
322 toptree_to_numa_first(numa, phys); in toptree_to_numa()
325 toptree_to_numa_single(numa, phys, 0); in toptree_to_numa()
326 toptree_to_numa_single(numa, phys, 1); in toptree_to_numa()
327 toptree_unify_tree(numa); in toptree_to_numa()
330 return numa; in toptree_to_numa()
379 static void toptree_to_topology(struct toptree *numa) in toptree_to_topology() argument
389 toptree_for_each(core, numa, CORE) in toptree_to_topology()
421 struct toptree *phys, *numa; in emu_update_cpu_topology() local
426 numa = toptree_to_numa(phys); in emu_update_cpu_topology()
428 toptree_to_topology(numa); in emu_update_cpu_topology()
429 toptree_free(numa); in emu_update_cpu_topology()