Lines Matching refs:g_max_cpus
55 static int g_max_cpus;
159 for (i = g_start, j = 0; i < g_max_cpus; i++) {
202 for (i = g_start, j = 0; i < g_max_cpus && j < g_cpus_per_line; i++) {
236 if (cpu < 0 || cpu >= g_max_cpus)
254 if (low < 0 || low >= g_max_cpus)
257 if (high < 0 || high >= g_max_cpus)
286 for (i = 0; i < g_max_cpus; i++)
290 if (i != g_max_cpus)
294 g_pset_ncpus = g_max_cpus;
309 uint_t ncpus = g_max_cpus;
344 bzero(g_present, sizeof (processorid_t) * g_max_cpus);
403 g_max_cpus = sysconf(_SC_CPUID_MAX) + 1;
405 if ((g_present = malloc(sizeof (processorid_t) * g_max_cpus)) == NULL)
408 bzero(g_present, sizeof (processorid_t) * g_max_cpus);
410 g_pset_cpus = malloc(sizeof (processorid_t) * g_max_cpus);
414 bzero(g_pset_cpus, sizeof (processorid_t) * g_max_cpus);
552 for (i = 0; i < g_max_cpus && !g_present[i]; i++)
555 if (i == g_max_cpus) {
556 for (i = 0; i < g_max_cpus; i++)
620 } while ((g_start = g_end) < g_max_cpus);