Lines Matching refs:new_tree
187 struct cpuinfo_tree *new_tree; in build_cpuinfo_tree() local
197 new_tree = kzalloc(sizeof(struct cpuinfo_tree) + in build_cpuinfo_tree()
199 if (!new_tree) in build_cpuinfo_tree()
202 new_tree->total_nodes = n; in build_cpuinfo_tree()
203 memcpy(&new_tree->level, tmp_level, sizeof(tmp_level)); in build_cpuinfo_tree()
209 n = new_tree->level[level].start_index; in build_cpuinfo_tree()
212 node = &new_tree->nodes[n]; in build_cpuinfo_tree()
216 kfree(new_tree); in build_cpuinfo_tree()
224 ? new_tree->level[level - 1].start_index : -1; in build_cpuinfo_tree()
228 ? cpu : new_tree->level[level + 1].start_index; in build_cpuinfo_tree()
247 kfree(new_tree); in build_cpuinfo_tree()
253 node = &new_tree->nodes[level_rover[level]]; in build_cpuinfo_tree()
277 if (n <= new_tree->level[level].end_index) { in build_cpuinfo_tree()
278 node = &new_tree->nodes[n]; in build_cpuinfo_tree()
294 return new_tree; in build_cpuinfo_tree()