Lines Matching refs:ncpus
69 static int ncpus; variable
368 ncpus = ncaches = 0; in all_stat_init()
371 ncpus++; in all_stat_init()
376 safe_zalloc((void **)&cpu_stat_list, ncpus * sizeof (kstat_t *), 1); in all_stat_init()
379 ncpus = ncaches = 0; in all_stat_init()
383 cpu_stat_list[ncpus++] = ksp; in all_stat_init()
389 if (ncpus == 0) in all_stat_init()
444 for (i = 0; i < ncpus; i++) { in all_stat_load()
509 d.csi.cpu[i] = (cpu_tick[i] + cpu_stat_adj[i]) / ncpus; in all_stat_load()
757 int max_cpus = MAX(ncpus, oncpus); in compute_cpu_stat_adj()
759 qsort(cpu_stat_list, ncpus, sizeof (*cpu_stat_list), in compute_cpu_stat_adj()
771 diff_two_arrays(s, oncpus, ncpus, inarray); in compute_cpu_stat_adj()
797 oncpus = ncpus; in compute_cpu_stat_adj()
800 for (i = 0; i < ncpus; i++) { in compute_cpu_stat_adj()