Home
last modified time | relevance | path

Searched refs:available_cpus (Results 1 – 1 of 1) sorted by relevance

/hardware/google/gfxstream/guest/mesa/src/util/
Du_cpu_detect.c727 int available_cpus = 0; in _util_cpu_detect_once() local
737 available_cpus = MAX2(1, system_info.dwNumberOfProcessors); in _util_cpu_detect_once()
753 available_cpus = CPU_COUNT(&affin); in _util_cpu_detect_once()
762 if (available_cpus == 0) { in _util_cpu_detect_once()
768 available_cpus = ncpu; in _util_cpu_detect_once()
771 if (available_cpus == 0) { in _util_cpu_detect_once()
772 available_cpus = sysconf(_SC_NPROCESSORS_ONLN); in _util_cpu_detect_once()
773 if (available_cpus == ~0) in _util_cpu_detect_once()
774 available_cpus = 1; in _util_cpu_detect_once()
777 if (available_cpus == 0) { in _util_cpu_detect_once()
[all …]