Lines Matching refs:tree_level
124 static int enumerate_cpuinfo_nodes(struct cpuinfo_level *tree_level) in enumerate_cpuinfo_nodes() argument
130 struct cpuinfo_level *lv = &tree_level[i]; in enumerate_cpuinfo_nodes()
144 tree_level[CPUINFO_LVL_NODE].num_nodes++; in enumerate_cpuinfo_nodes()
150 tree_level[CPUINFO_LVL_CORE].num_nodes++; in enumerate_cpuinfo_nodes()
156 tree_level[CPUINFO_LVL_PROC].num_nodes++; in enumerate_cpuinfo_nodes()
162 tree_level[CPUINFO_LVL_ROOT].num_nodes = 1; in enumerate_cpuinfo_nodes()
164 n = tree_level[CPUINFO_LVL_NODE].num_nodes; in enumerate_cpuinfo_nodes()
165 tree_level[CPUINFO_LVL_NODE].start_index = 1; in enumerate_cpuinfo_nodes()
166 tree_level[CPUINFO_LVL_NODE].end_index = n; in enumerate_cpuinfo_nodes()
169 tree_level[CPUINFO_LVL_CORE].start_index = n; in enumerate_cpuinfo_nodes()
170 n += tree_level[CPUINFO_LVL_CORE].num_nodes; in enumerate_cpuinfo_nodes()
171 tree_level[CPUINFO_LVL_CORE].end_index = n - 1; in enumerate_cpuinfo_nodes()
173 tree_level[CPUINFO_LVL_PROC].start_index = n; in enumerate_cpuinfo_nodes()
174 n += tree_level[CPUINFO_LVL_PROC].num_nodes; in enumerate_cpuinfo_nodes()
175 tree_level[CPUINFO_LVL_PROC].end_index = n - 1; in enumerate_cpuinfo_nodes()