Lines Matching refs:CPUSTATES
154 static long cp_time[CPUSTATES];
155 static long cp_old[CPUSTATES];
156 static long cp_diff[CPUSTATES];
169 int cpu_states[CPUSTATES];
363 size = sizeof(long) * maxcpu * CPUSTATES;
370 maxid = (size / CPUSTATES / sizeof(long)) - 1;
373 for (j = 0; empty && j < CPUSTATES; j++) {
374 if (times[i * CPUSTATES + j] != 0)
382 size = sizeof(long) * ncpus * CPUSTATES;
449 size = (maxid + 1) * CPUSTATES * sizeof(long);
464 percentages(CPUSTATES, &pcpu_cpu_states[j * CPUSTATES],
465 &pcpu_cp_time[j * CPUSTATES],
466 &pcpu_cp_old[j * CPUSTATES],
467 &pcpu_cp_diff[j * CPUSTATES]);
470 percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff);