Lines Matching defs:cost
45 debugfs_create_ulong("cost", 0444, d, &ps->cost);
157 /* Compute the cost of each performance state. */
160 unsigned long power_res, cost;
163 ret = cb->get_cost(dev, table[i].frequency, &cost);
164 if (ret || !cost || cost > EM_MAX_POWER) {
165 dev_err(dev, "EM: invalid cost %lu %d\n",
166 cost, ret);
171 cost = div64_u64(fmax * power_res, table[i].frequency);
174 table[i].cost = cost;
176 if (table[i].cost >= prev_cost) {
181 prev_cost = table[i].cost;