Lines Matching refs:CPUSTATES
623 size = sizeof(long) * maxcpu * CPUSTATES; in getcpuinfo()
628 maxid = (size / CPUSTATES / sizeof(long)) - 1; in getcpuinfo()
631 for (j = 0; empty && j < CPUSTATES; j++) { in getcpuinfo()
632 if (times[i * CPUSTATES + j] != 0) in getcpuinfo()
718 size_cp_times = sizeof(long) * (maxid + 1) * CPUSTATES; in dovmstat()
1141 for (state = 0; state < CPUSTATES; ++state) { in devstats()
1199 for (state = 0; state < CPUSTATES; ++state) in cpustats()
1226 for (state = 0; state < CPUSTATES; ++state) { in pcpustats()
1227 tmp = cur_cp_times[i * CPUSTATES + state]; in pcpustats()
1228 cur_cp_times[i * CPUSTATES + state] -= last_cp_times[i * in pcpustats()
1229 CPUSTATES + state]; in pcpustats()
1230 last_cp_times[i * CPUSTATES + state] = tmp; in pcpustats()
1242 for (state = 0; state < CPUSTATES; ++state) in pcpustats()
1243 total += cur_cp_times[i * CPUSTATES + state]; in pcpustats()
1248 percent("user", (cur_cp_times[i * CPUSTATES + CP_USER] + in pcpustats()
1249 cur_cp_times[i * CPUSTATES + CP_NICE]) * lpct, &over); in pcpustats()
1250 percent("system", (cur_cp_times[i * CPUSTATES + CP_SYS] + in pcpustats()
1251 cur_cp_times[i * CPUSTATES + CP_INTR]) * lpct, &over); in pcpustats()
1252 percent("idle", cur_cp_times[i * CPUSTATES + CP_IDLE] * lpct, in pcpustats()