|
@@ -831,11 +831,11 @@ static void intel_pstate_get_min_max(struct cpudata *cpu, int *min, int *max)
|
|
* policy, or by cpu specific default values determined through
|
|
* policy, or by cpu specific default values determined through
|
|
* experimentation.
|
|
* experimentation.
|
|
*/
|
|
*/
|
|
- max_perf_adj = fp_toint(mul_fp(int_tofp(max_perf), limits->max_perf));
|
|
|
|
|
|
+ max_perf_adj = fp_toint(max_perf * limits->max_perf);
|
|
*max = clamp_t(int, max_perf_adj,
|
|
*max = clamp_t(int, max_perf_adj,
|
|
cpu->pstate.min_pstate, cpu->pstate.turbo_pstate);
|
|
cpu->pstate.min_pstate, cpu->pstate.turbo_pstate);
|
|
|
|
|
|
- min_perf = fp_toint(mul_fp(int_tofp(max_perf), limits->min_perf));
|
|
|
|
|
|
+ min_perf = fp_toint(max_perf * limits->min_perf);
|
|
*min = clamp_t(int, min_perf, cpu->pstate.min_pstate, max_perf);
|
|
*min = clamp_t(int, min_perf, cpu->pstate.min_pstate, max_perf);
|
|
}
|
|
}
|
|
|
|
|