Lines Matching defs:base_freq
109 static bool __init slv_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq)
113 err = rdmsrl_safe(MSR_ATOM_CORE_RATIOS, base_freq);
121 *base_freq = (*base_freq >> 16) & 0x3F; /* max P state */
149 static bool __init knl_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq,
156 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq);
160 *base_freq = (*base_freq >> 8) & 0xFF; /* max P state */
188 static bool __init skx_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq, int size)
194 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq);
198 *base_freq = (*base_freq >> 8) & 0xFF; /* max P state */
219 static bool __init core_set_max_freq_ratio(u64 *base_freq, u64 *turbo_freq)
224 err = rdmsrl_safe(MSR_PLATFORM_INFO, base_freq);
232 *base_freq = (*base_freq >> 8) & 0xFF; /* max P state */
244 u64 base_freq, turbo_freq;
247 if (slv_set_max_freq_ratio(&base_freq, &turbo_freq))
251 skx_set_max_freq_ratio(&base_freq, &turbo_freq, 1))
255 knl_set_max_freq_ratio(&base_freq, &turbo_freq, 1))
259 skx_set_max_freq_ratio(&base_freq, &turbo_freq, 4))
262 if (core_set_max_freq_ratio(&base_freq, &turbo_freq))
274 if (!base_freq || !turbo_freq) {
279 turbo_ratio = div_u64(turbo_freq * SCHED_CAPACITY_SCALE, base_freq);