Lines Matching defs:perf
116 u64 perf;
122 pr_warn("%s: failed to read perf counters\n", __func__);
126 perf = cppc_perf_from_fbctrs(cpu_data, &cppc_fi->prev_perf_fb_ctrs,
130 perf <<= SCHED_CAPACITY_SHIFT;
131 local_freq_scale = div64_u64(perf, cpu_data->perf_caps.highest_perf);
181 pr_warn("%s: failed to read perf counters for cpu:%d: %d\n",
326 * use them to convert perf to freq and vice versa. The conversion is
328 * - (Low perf, Low freq)
329 * - (Nominal perf, Nominal perf)
332 unsigned int perf)
350 retval = offset + div64_u64(perf * mul, div);
393 /* Return if it is exactly the same perf */
513 unsigned long perf_step, perf_prev, perf, perf_check;
541 perf = perf_caps->highest_perf;
544 perf = perf_caps->lowest_perf;
548 perf = perf_caps->highest_perf;
550 perf = step * perf_step;
553 *KHz = cppc_cpufreq_perf_to_khz(cpu_data, perf);
563 perf++;
564 *KHz = cppc_cpufreq_perf_to_khz(cpu_data, perf);
678 pr_debug("Err reading CPU%d perf caps: ret:%d\n", cpu, ret);
724 * Set min to lowest nonlinear perf to avoid any efficiency penalty (see
734 * available if userspace wants to use any perf between lowest & lowest
735 * nonlinear perf
781 pr_debug("Err setting perf value:%d on CPU:%d. ret:%d\n",
807 pr_debug("Err setting perf value:%d on CPU:%d. ret:%d\n",