Lines Matching refs:nr_cpus
438 util_cpu_caps.cores_per_L3 = util_cpu_caps.nr_cpus; in get_cpu_topology()
452 if (cache_level != 3 || cores_per_L3 == util_cpu_caps.nr_cpus) in get_cpu_topology()
477 for (unsigned i = 0; i < util_cpu_caps.nr_cpus && i < UTIL_MAX_CPUS; in get_cpu_topology()
499 util_cpu_caps.num_L3_caches = util_cpu_caps.nr_cpus / cores_per_L3; in get_cpu_topology()
504 for (unsigned i = 0; i < util_cpu_caps.nr_cpus && i < UTIL_MAX_CPUS; in get_cpu_topology()
524 for (int j = util_cpu_caps.nr_cpus - 1; j >= 0; j -= 32) in get_cpu_topology()
550 util_cpu_caps.nr_cpus = system_info.dwNumberOfProcessors; in util_cpu_detect_once()
553 util_cpu_caps.nr_cpus = sysconf(_SC_NPROCESSORS_ONLN); in util_cpu_detect_once()
554 if (util_cpu_caps.nr_cpus == ~0) in util_cpu_detect_once()
555 util_cpu_caps.nr_cpus = 1; in util_cpu_detect_once()
566 util_cpu_caps.nr_cpus = ncpu; in util_cpu_detect_once()
569 util_cpu_caps.nr_cpus = 1; in util_cpu_detect_once()
708 debug_printf("util_cpu_caps.nr_cpus = %u\n", util_cpu_caps.nr_cpus); in util_cpu_detect_once()