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