Lines Matching refs:num_nodes
45 int num_nodes; /* Number of nodes in a level in a cpuinfo tree */ member
127 int i, n, num_nodes; in enumerate_cpuinfo_nodes() local
133 lv->start_index = lv->end_index = lv->num_nodes = 0; in enumerate_cpuinfo_nodes()
136 num_nodes = 1; /* Include the root node */ in enumerate_cpuinfo_nodes()
144 tree_level[CPUINFO_LVL_NODE].num_nodes++; in enumerate_cpuinfo_nodes()
146 num_nodes++; in enumerate_cpuinfo_nodes()
150 tree_level[CPUINFO_LVL_CORE].num_nodes++; in enumerate_cpuinfo_nodes()
152 num_nodes++; in enumerate_cpuinfo_nodes()
156 tree_level[CPUINFO_LVL_PROC].num_nodes++; in enumerate_cpuinfo_nodes()
158 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()
170 n += tree_level[CPUINFO_LVL_CORE].num_nodes; in enumerate_cpuinfo_nodes()
174 n += tree_level[CPUINFO_LVL_PROC].num_nodes; in enumerate_cpuinfo_nodes()
177 return num_nodes; in enumerate_cpuinfo_nodes()