Lines Matching full:cost
76 DEFINE_EM_DBG_SHOW(cost, cost);
105 debugfs_create_file("cost", 0444, d, &em_dbg[i], in em_debug_create_ps()
264 /* Compute the cost of each performance state. */ in em_compute_costs()
266 unsigned long power_res, cost; in em_compute_costs() local
269 ret = cb->get_cost(dev, table[i].frequency, &cost); in em_compute_costs()
270 if (ret || !cost || cost > EM_MAX_POWER) { in em_compute_costs()
271 dev_err(dev, "EM: invalid cost %lu %d\n", in em_compute_costs()
272 cost, ret); in em_compute_costs()
276 /* increase resolution of 'cost' precision */ in em_compute_costs()
278 cost = power_res / table[i].performance; in em_compute_costs()
281 table[i].cost = cost; in em_compute_costs()
283 if (table[i].cost >= prev_cost) { in em_compute_costs()
288 prev_cost = table[i].cost; in em_compute_costs()
296 * em_dev_compute_costs() - Calculate cost values for new runtime EM table
301 * Calculate the em_perf_state::cost values for new runtime EM table. The