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