Lines Matching refs:cost
76 DEFINE_EM_DBG_SHOW(cost, cost);
105 debugfs_create_file("cost", 0444, d, &em_dbg[i],
263 /* Compute the cost of each performance state. */
265 unsigned long power_res, cost;
268 ret = cb->get_cost(dev, table[i].frequency, &cost);
269 if (ret || !cost || cost > EM_MAX_POWER) {
270 dev_err(dev, "EM: invalid cost %lu %d\n",
271 cost, ret);
275 /* increase resolution of 'cost' precision */
277 cost = power_res / table[i].performance;
280 table[i].cost = cost;
282 if (table[i].cost >= prev_cost) {
287 prev_cost = table[i].cost;
295 * em_dev_compute_costs() - Calculate cost values for new runtime EM table
300 * Calculate the em_perf_state::cost values for new runtime EM table. The