Lines Matching refs:usage
59 int32_t load; /* average cpu usage */
60 int32_t sample_cnt; /* number of usage samples */
89 * Returns the CPU usage of a given processor entry.
92 * thus, the usage over the sampling period.
99 double usage = 0.0;
122 * percent usage by contrasting with total ticks delta. */
123 usage = (double)(e->states[e->cur_sample_idx][CPUSTATES-1] -
125 usage = 100 - (usage * 100);
126 HRDBG("CPU no. %d, delta ticks %ld, pct usage %.2f", e->cpu_no,
127 delta, usage);
129 return ((int)(usage));
133 * Save a new sample to proc entry and get the average usage.