Lines Matching refs:available_cpus
590 int available_cpus = 0; in util_cpu_detect_once() local
600 available_cpus = MAX2(1, system_info.dwNumberOfProcessors); in util_cpu_detect_once()
616 available_cpus = CPU_COUNT(&affin); in util_cpu_detect_once()
625 if (available_cpus == 0) { in util_cpu_detect_once()
631 available_cpus = ncpu; in util_cpu_detect_once()
634 if (available_cpus == 0) { in util_cpu_detect_once()
635 available_cpus = sysconf(_SC_NPROCESSORS_ONLN); in util_cpu_detect_once()
636 if (available_cpus == ~0) in util_cpu_detect_once()
637 available_cpus = 1; in util_cpu_detect_once()
640 if (available_cpus == 0) { in util_cpu_detect_once()
646 available_cpus = ncpu; in util_cpu_detect_once()
672 util_cpu_caps.nr_cpus = MAX2(1, available_cpus); in util_cpu_detect_once()