Home
last modified time | relevance | path

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

/linux/tools/power/x86/x86_energy_perf_policy/
H A Dx86_energy_perf_policy.c126 int msr_perf; in ratio_2_msr_perf() local
131 msr_perf = ratio * 255 / bdx_highest_ratio; in ratio_2_msr_perf()
134 fprintf(stderr, "%d = ratio_to_msr_perf(%d)\n", msr_perf, ratio); in ratio_2_msr_perf()
136 return msr_perf; in ratio_2_msr_perf()
138 int msr_perf_2_ratio(int msr_perf) in msr_perf_2_ratio() argument
144 return msr_perf; in msr_perf_2_ratio()
146 d = (double)msr_perf * (double) bdx_highest_ratio / 255.0; in msr_perf_2_ratio()
151 fprintf(stderr, "%d = msr_perf_ratio(%d) {%f}\n", ratio, msr_perf, d); in msr_perf_2_ratio()