Lines Matching full:cost
18 * @cost: The cost coefficient associated with this level, used during
25 unsigned long cost; member
34 * but a lower or equal power cost. Such inefficient states are ignored when
104 * which would reduce big value stored in the 'cost' field, then multiply by
106 * e.g. power ~1.3 Watt at max freq, so the 'cost' value > 1mln micro-Watts.
108 * could be 4096, then multiplication: 'cost' * 'sum_util' would overflow.
115 #define em_estimate_energy(cost, sum_util, scale_cpu) \ argument
116 (((cost) * (sum_util)) / (scale_cpu))
118 #define em_estimate_energy(cost, sum_util, scale_cpu) \ argument
119 (((cost) / (scale_cpu)) * (sum_util))
146 * get_cost() - Provide the cost at the given performance state of
150 * @cost : The cost value for the performance state
153 * In case of CPUs, the cost is the one of a single CPU in the domain.
160 unsigned long *cost);
287 * as 'ps->cost'. in em_cpu_energy()
290 * share the same 'ps->cost', and the same CPU capacity. Hence, the in em_cpu_energy()
294 * ps->cost * \Sum cpu_util in em_cpu_energy()
298 return em_estimate_energy(ps->cost, sum_util, scale_cpu); in em_cpu_energy()