Home
last modified time | relevance | path

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

/Linux-v5.4/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c120 int msr_perf; in ratio_2_msr_perf() local
125 msr_perf = ratio * 255 / bdx_highest_ratio; in ratio_2_msr_perf()
128 fprintf(stderr, "%d = ratio_to_msr_perf(%d)\n", msr_perf, ratio); in ratio_2_msr_perf()
130 return msr_perf; in ratio_2_msr_perf()
132 int msr_perf_2_ratio(int msr_perf) in msr_perf_2_ratio() argument
138 return msr_perf; in msr_perf_2_ratio()
140 d = (double)msr_perf * (double) bdx_highest_ratio / 255.0; in msr_perf_2_ratio()
145 fprintf(stderr, "%d = msr_perf_ratio(%d) {%f}\n", ratio, msr_perf, d); in msr_perf_2_ratio()