Lines Matching refs:lib_num_loc_cpus
68 psp = (struct pst_processor *)malloc(lib_num_loc_cpus * sizeof(*psp)); in get_cpu_idle()
70 printf("malloc(%d) failed!\n", lib_num_loc_cpus * sizeof(*psp)); in get_cpu_idle()
73 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) { in get_cpu_idle()
75 for (i = 0; i < lib_num_loc_cpus; i++) { in get_cpu_idle()
132 psp = (struct pst_processor *)malloc(lib_num_loc_cpus * sizeof(*psp)); in calibrate_idle_rate()
134 printf("malloc(%d) failed!\n", lib_num_loc_cpus * sizeof(*psp)); in calibrate_idle_rate()
141 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) { in calibrate_idle_rate()
142 for (j = 0; j < lib_num_loc_cpus; j++) { in calibrate_idle_rate()
177 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) { in calibrate_idle_rate()
178 for (j = 0; j < lib_num_loc_cpus; j++) { in calibrate_idle_rate()
249 for (i = 0; i < lib_num_loc_cpus; i++) { in calc_cpu_util_internal()
282 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()