Lines Matching refs:CPUSTATES
106 static long cp_time[CPUSTATES];
107 static long cp_old[CPUSTATES];
108 static long cp_diff[CPUSTATES];
121 static int cpu_states[CPUSTATES];
360 times = calloc(maxcpu * CPUSTATES, sizeof(long)); in machine_init()
363 size = sizeof(long) * maxcpu * CPUSTATES; in machine_init()
367 maxid = MIN(size / CPUSTATES / sizeof(long) - 1, CPU_SETSIZE - 1); in machine_init()
371 for (j = 0; empty && j < CPUSTATES; j++) { in machine_init()
372 if (times[i * CPUSTATES + j] != 0) in machine_init()
380 pcpu_cp_old = calloc(ncpus * CPUSTATES, sizeof(long)); in machine_init()
381 pcpu_cp_diff = calloc(ncpus * CPUSTATES, sizeof(long)); in machine_init()
382 pcpu_cpu_states = calloc(ncpus * CPUSTATES, sizeof(int)); in machine_init()
463 size = (maxid + 1) * CPUSTATES * sizeof(long); in get_system_info()
478 percentages(CPUSTATES, &pcpu_cpu_states[j * CPUSTATES], in get_system_info()
479 &pcpu_cp_time[j * CPUSTATES], in get_system_info()
480 &pcpu_cp_old[j * CPUSTATES], in get_system_info()
481 &pcpu_cp_diff[j * CPUSTATES]); in get_system_info()
484 percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in get_system_info()