Lines Matching refs:num_cpus
138 int num_cpus = 0; in InitializeSystemInfo() local
182 num_cpus++; // count up every time we see an "processor :" entry in InitializeSystemInfo()
203 if (num_cpus == 0) { in InitializeSystemInfo()
206 if ((max_cpu_id + 1) != num_cpus) { in InitializeSystemInfo()
211 cpuinfo_num_cpus = num_cpus; in InitializeSystemInfo()
272 int num_cpus = 0; in InitializeSystemInfo()
273 size_t size = sizeof(num_cpus); in InitializeSystemInfo()
275 if (::sysctl(numcpus_name, arraysize(numcpus_name), &num_cpus, &size, nullptr, 0) == in InitializeSystemInfo()
277 (size == sizeof(num_cpus))) in InitializeSystemInfo()
278 cpuinfo_num_cpus = num_cpus; in InitializeSystemInfo()
406 for (int cpu = 0, num_cpus = NumCPUs(); cpu < num_cpus; ++cpu) { in CpuScalingEnabled() local