Lines Matching refs:cpuinfo_tree
48 struct cpuinfo_tree { struct
57 static struct cpuinfo_tree *cpuinfo_tree; argument
185 static struct cpuinfo_tree *build_cpuinfo_tree(void) in build_cpuinfo_tree()
187 struct cpuinfo_tree *new_tree; in build_cpuinfo_tree()
197 new_tree = kzalloc(sizeof(struct cpuinfo_tree) + in build_cpuinfo_tree()
297 static void increment_rover(struct cpuinfo_tree *t, int node_index, in increment_rover()
319 static int iterate_cpu(struct cpuinfo_tree *t, unsigned int root_index) in iterate_cpu()
351 if (cpuinfo_tree) { in _cpu_map_rebuild()
352 kfree(cpuinfo_tree); in _cpu_map_rebuild()
353 cpuinfo_tree = NULL; in _cpu_map_rebuild()
356 cpuinfo_tree = build_cpuinfo_tree(); in _cpu_map_rebuild()
357 if (!cpuinfo_tree) in _cpu_map_rebuild()
364 for (i = 0; i < cpuinfo_tree->nodes[0].num_cpus; i++) in _cpu_map_rebuild()
365 cpu_distribution_map[i] = iterate_cpu(cpuinfo_tree, 0); in _cpu_map_rebuild()
394 if (unlikely(!cpuinfo_tree)) { in _map_to_cpu()
396 if (!cpuinfo_tree) in _map_to_cpu()
400 root_node = &cpuinfo_tree->nodes[0]; in _map_to_cpu()
404 if (!cpuinfo_tree) in _map_to_cpu()