Lines Matching defs:cost
64 DEFINE_EM_DBG_SHOW(cost, cost);
93 debugfs_create_file("cost", 0444, d, &em_dbg[i],
240 /* Compute the cost of each performance state. */
242 unsigned long power_res, cost;
245 ret = cb->get_cost(dev, table[i].frequency, &cost);
246 if (ret || !cost || cost > EM_MAX_POWER) {
247 dev_err(dev, "EM: invalid cost %lu %d\n",
248 cost, ret);
252 /* increase resolution of 'cost' precision */
254 cost = power_res / table[i].performance;
257 table[i].cost = cost;
259 if (table[i].cost >= prev_cost) {
264 prev_cost = table[i].cost;
272 * em_dev_compute_costs() - Calculate cost values for new runtime EM table
277 * Calculate the em_perf_state::cost values for new runtime EM table. The