Lines Matching refs:cppc_perf
364 struct cppc_perf_caps cppc_perf; in intel_pstate_set_itmt_prio() local
368 ret = cppc_get_perf_caps(cpu, &cppc_perf); in intel_pstate_set_itmt_prio()
376 if (ret || cppc_perf.highest_perf == CPPC_MAX_PERF) in intel_pstate_set_itmt_prio()
377 cppc_perf.highest_perf = HWP_HIGHEST_PERF(READ_ONCE(all_cpu_data[cpu]->hwp_cap_cached)); in intel_pstate_set_itmt_prio()
384 sched_set_itmt_core_prio(cppc_perf.highest_perf, cpu); in intel_pstate_set_itmt_prio()
387 if (cppc_perf.highest_perf > max_highest_perf) in intel_pstate_set_itmt_prio()
388 max_highest_perf = cppc_perf.highest_perf; in intel_pstate_set_itmt_prio()
390 if (cppc_perf.highest_perf < min_highest_perf) in intel_pstate_set_itmt_prio()
391 min_highest_perf = cppc_perf.highest_perf; in intel_pstate_set_itmt_prio()
407 struct cppc_perf_caps cppc_perf; in intel_pstate_get_cppc_guaranteed() local
410 ret = cppc_get_perf_caps(cpu, &cppc_perf); in intel_pstate_get_cppc_guaranteed()
414 if (cppc_perf.guaranteed_perf) in intel_pstate_get_cppc_guaranteed()
415 return cppc_perf.guaranteed_perf; in intel_pstate_get_cppc_guaranteed()
417 return cppc_perf.nominal_perf; in intel_pstate_get_cppc_guaranteed()
422 struct cppc_perf_caps cppc_perf; in intel_pstate_cppc_get_scaling() local
428 if (!cppc_get_perf_caps(cpu, &cppc_perf) && in intel_pstate_cppc_get_scaling()
429 cppc_perf.nominal_perf && cppc_perf.nominal_freq) in intel_pstate_cppc_get_scaling()
430 return div_u64(cppc_perf.nominal_freq * KHZ_PER_MHZ, in intel_pstate_cppc_get_scaling()
431 cppc_perf.nominal_perf); in intel_pstate_cppc_get_scaling()