Lines Matching refs:usage
38 unsigned int usage;
84 usage = 0;
86 usage = 100;
88 usage = 100 * diff_used / diff_boot;
93 * since last call. The % of overall CPU usage is :
97 * What we want is that when the CPU usage is zero, the LED must blink
111 * - a target CPU usage of min(50%, 100%/#CPU) for a 10% duty cycle
115 * OFF_ms = 90 + (1 - usage/target) * 900
117 * ON_ms = 10 + (usage-target)/(100%-target) * 80
118 * OFF_ms = 90 - (usage-target)/(100%-target) * 80
136 if (usage < target)
139 990 - 900 * usage / target; /* OFF */
142 10 + 80 * (usage - target) / (100 - target) : /* ON */
143 90 - 80 * (usage - target) / (100 - target); /* OFF */