Home
last modified time | relevance | path

Searched refs:msr_perf (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c123 int msr_perf; in ratio_2_msr_perf() local
128 msr_perf = ratio * 255 / bdx_highest_ratio; in ratio_2_msr_perf()
131 fprintf(stderr, "%d = ratio_to_msr_perf(%d)\n", msr_perf, ratio); in ratio_2_msr_perf()
133 return msr_perf; in ratio_2_msr_perf()
135 int msr_perf_2_ratio(int msr_perf) in msr_perf_2_ratio() argument
141 return msr_perf; in msr_perf_2_ratio()
143 d = (double)msr_perf * (double) bdx_highest_ratio / 255.0; in msr_perf_2_ratio()
148 fprintf(stderr, "%d = msr_perf_ratio(%d) {%f}\n", ratio, msr_perf, d); in msr_perf_2_ratio()