Lines Matching refs:usage
39 unsigned int usage;
85 usage = 0;
87 usage = 100;
89 usage = 100 * diff_used / diff_boot;
94 * since last call. The % of overall CPU usage is :
98 * What we want is that when the CPU usage is zero, the LED must blink
112 * - a target CPU usage of min(50%, 100%/#CPU) for a 10% duty cycle
116 * OFF_ms = 90 + (1 - usage/target) * 900
118 * ON_ms = 10 + (usage-target)/(100%-target) * 80
119 * OFF_ms = 90 - (usage-target)/(100%-target) * 80
137 if (usage < target)
140 990 - 900 * usage / target; /* OFF */
143 10 + 80 * (usage - target) / (100 - target) : /* ON */
144 90 - 80 * (usage - target) / (100 - target); /* OFF */