Lines Matching defs:step
504 static inline unsigned long compute_cost(int cpu, int step)
507 step * CPPC_EM_COST_STEP;
514 unsigned int min_step, max_step, step, step_check;
534 step = perf_prev / perf_step;
536 if (step > max_step)
540 step = max_step;
542 } else if (step < min_step) {
543 step = min_step;
546 step++;
547 if (step == max_step)
550 perf = step * perf_step;
560 * desired step value.
562 while ((*KHz == prev_freq) || (step_check != step)) {
574 *power = compute_cost(cpu_dev->id, step);
587 int step;
596 step = perf_prev / perf_step;
598 *cost = compute_cost(cpu_dev->id, step);