Home
last modified time | relevance | path

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

/Linux-v4.19/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c121 int msr_perf; in ratio_2_msr_perf() local
126 msr_perf = ratio * 255 / bdx_highest_ratio; in ratio_2_msr_perf()
129 fprintf(stderr, "%d = ratio_to_msr_perf(%d)\n", msr_perf, ratio); in ratio_2_msr_perf()
131 return msr_perf; in ratio_2_msr_perf()
133 int msr_perf_2_ratio(int msr_perf) in msr_perf_2_ratio() argument
139 return msr_perf; in msr_perf_2_ratio()
141 d = (double)msr_perf * (double) bdx_highest_ratio / 255.0; in msr_perf_2_ratio()
146 fprintf(stderr, "%d = msr_perf_ratio(%d) {%f}\n", ratio, msr_perf, d); in msr_perf_2_ratio()