Lines Matching defs:ratio
118 * then we must translate between MSR format and simple ratio
121 int ratio_2_msr_perf(int ratio)
126 return ratio;
128 msr_perf = ratio * 255 / bdx_highest_ratio;
131 fprintf(stderr, "%d = ratio_to_msr_perf(%d)\n", msr_perf, ratio);
137 int ratio;
145 ratio = (int)d;
148 fprintf(stderr, "%d = msr_perf_ratio(%d) {%f}\n", ratio, msr_perf, d);
150 return ratio;
946 int ratio_2_sysfs_khz(int ratio)
950 return ratio * bclk_khz;
959 void update_cpufreq_scaling_freq(int is_max, int cpu, unsigned int ratio)
976 khz = ratio_2_sysfs_khz(ratio);