Lines Matching refs:phys
219 static void toptree_to_numa_single(struct toptree *numa, struct toptree *phys, in toptree_to_numa_single() argument
224 toptree_for_each_safe(core, tmp, phys, CORE) { in toptree_to_numa_single()
236 static void move_level_to_numa_node(struct toptree *node, struct toptree *phys, in move_level_to_numa_node() argument
242 toptree_for_each_safe(cur, tmp, phys, level) { in move_level_to_numa_node()
259 static void move_level_to_numa(struct toptree *numa, struct toptree *phys, in move_level_to_numa() argument
265 move_level_to_numa_node(node, phys, level, perfect); in move_level_to_numa()
271 static void toptree_to_numa_first(struct toptree *numa, struct toptree *phys) in toptree_to_numa_first() argument
276 move_level_to_numa(numa, phys, DRAWER, true); in toptree_to_numa_first()
277 move_level_to_numa(numa, phys, DRAWER, false); in toptree_to_numa_first()
278 move_level_to_numa(numa, phys, BOOK, true); in toptree_to_numa_first()
279 move_level_to_numa(numa, phys, BOOK, false); in toptree_to_numa_first()
280 move_level_to_numa(numa, phys, MC, true); in toptree_to_numa_first()
281 move_level_to_numa(numa, phys, MC, false); in toptree_to_numa_first()
325 static struct toptree *toptree_to_numa(struct toptree *phys) in toptree_to_numa() argument
331 cores_total = emu_cores->total + cores_free(phys); in toptree_to_numa()
335 toptree_to_numa_first(numa, phys); in toptree_to_numa()
338 toptree_to_numa_single(numa, phys, 0); in toptree_to_numa()
339 toptree_to_numa_single(numa, phys, 1); in toptree_to_numa()
342 WARN_ON(cpumask_weight(&phys->mask)); in toptree_to_numa()
351 struct toptree *phys, *node, *drawer, *book, *mc, *core; in toptree_from_topology() local
355 phys = toptree_new(TOPTREE_ID_PHYS, 1); in toptree_from_topology()
359 node = toptree_get_child(phys, 0); in toptree_from_topology()
369 return phys; in toptree_from_topology()
436 struct toptree *phys, *numa; in emu_update_cpu_topology() local
440 phys = toptree_from_topology(); in emu_update_cpu_topology()
441 numa = toptree_to_numa(phys); in emu_update_cpu_topology()
442 toptree_free(phys); in emu_update_cpu_topology()