Searched refs:ncpus (Results 1 – 2 of 2) sorted by relevance
53 int ncpus; in TEST_IMPL() local74 ncpus = 0; in TEST_IMPL()75 while (cpumask[++ncpus]) { } in TEST_IMPL()85 cpumask[t1first + (ncpus >= 2)] = 1; in TEST_IMPL()86 cpumask[t2second + (ncpus >= 2)] = 1; in TEST_IMPL()93 if (ncpus >= 3) { in TEST_IMPL()97 if (ncpus >= 4) { in TEST_IMPL()112 ASSERT(cpumask[t1first + 0] == (ncpus == 1)); in TEST_IMPL()113 ASSERT(cpumask[t1first + 1] == (ncpus >= 2)); in TEST_IMPL()115 ASSERT(cpumask[t1first + 3] == (ncpus >= 4)); in TEST_IMPL()[all …]
1065 int result, ncpus, idx = 0; in uv_cpu_info() local1072 ncpus = result = perfstat_cpu(NULL, NULL, sizeof(perfstat_cpu_t), 0); in uv_cpu_info()1077 ps_cpus = (perfstat_cpu_t*) uv__malloc(ncpus * sizeof(perfstat_cpu_t)); in uv_cpu_info()1084 result = perfstat_cpu(&cpu_id, ps_cpus, sizeof(perfstat_cpu_t), ncpus); in uv_cpu_info()1090 *cpu_infos = (uv_cpu_info_t*) uv__malloc(ncpus * sizeof(uv_cpu_info_t)); in uv_cpu_info()1096 *count = ncpus; in uv_cpu_info()1099 while (idx < ncpus) { in uv_cpu_info()
Completed in 7 milliseconds