Lines Matching refs:phys
208 static void toptree_to_numa_single(struct toptree *numa, struct toptree *phys, in toptree_to_numa_single() argument
213 toptree_for_each_safe(core, tmp, phys, CORE) { in toptree_to_numa_single()
225 static void move_level_to_numa_node(struct toptree *node, struct toptree *phys, in move_level_to_numa_node() argument
231 toptree_for_each_safe(cur, tmp, phys, level) { in move_level_to_numa_node()
248 static void move_level_to_numa(struct toptree *numa, struct toptree *phys, in move_level_to_numa() argument
254 move_level_to_numa_node(node, phys, level, perfect); 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()
312 static struct toptree *toptree_to_numa(struct toptree *phys) in toptree_to_numa() argument
318 cores_total = emu_cores->total + cores_free(phys); 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()
329 WARN_ON(cpumask_weight(&phys->mask)); in toptree_to_numa()
338 struct toptree *phys, *node, *book, *mc, *core; in toptree_from_topology() local
342 phys = toptree_new(TOPTREE_ID_PHYS, 1); in toptree_from_topology()
346 node = toptree_get_child(phys, 0); in toptree_from_topology()
355 return phys; in toptree_from_topology()
421 struct toptree *phys, *numa; in emu_update_cpu_topology() local
425 phys = toptree_from_topology(); in emu_update_cpu_topology()
426 numa = toptree_to_numa(phys); in emu_update_cpu_topology()
427 toptree_free(phys); in emu_update_cpu_topology()