Lines Matching refs:cpuinfo_tree
48 struct cpuinfo_tree { struct
57 static struct cpuinfo_tree *cpuinfo_tree; variable
185 static struct cpuinfo_tree *build_cpuinfo_tree(void) in build_cpuinfo_tree()
187 struct cpuinfo_tree *new_tree; in build_cpuinfo_tree()
296 static void increment_rover(struct cpuinfo_tree *t, int node_index, in increment_rover()
318 static int iterate_cpu(struct cpuinfo_tree *t, unsigned int root_index) in iterate_cpu()
355 if (cpuinfo_tree) { in _cpu_map_rebuild()
356 kfree(cpuinfo_tree); in _cpu_map_rebuild()
357 cpuinfo_tree = NULL; in _cpu_map_rebuild()
360 cpuinfo_tree = build_cpuinfo_tree(); in _cpu_map_rebuild()
361 if (!cpuinfo_tree) in _cpu_map_rebuild()
368 for (i = 0; i < cpuinfo_tree->nodes[0].num_cpus; i++) in _cpu_map_rebuild()
369 cpu_distribution_map[i] = iterate_cpu(cpuinfo_tree, 0); in _cpu_map_rebuild()
398 if (unlikely(!cpuinfo_tree)) { in _map_to_cpu()
400 if (!cpuinfo_tree) in _map_to_cpu()
404 root_node = &cpuinfo_tree->nodes[0]; in _map_to_cpu()
408 if (!cpuinfo_tree) in _map_to_cpu()