|
|
@@ -1123,7 +1123,7 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy)
|
|
|
limits->max_sysfs_pct);
|
|
|
limits->max_perf_pct = max(limits->min_policy_pct,
|
|
|
limits->max_perf_pct);
|
|
|
- limits->max_perf = round_up(limits->max_perf, 8);
|
|
|
+ limits->max_perf = round_up(limits->max_perf, FRAC_BITS);
|
|
|
|
|
|
/* Make sure min_perf_pct <= max_perf_pct */
|
|
|
limits->min_perf_pct = min(limits->max_perf_pct, limits->min_perf_pct);
|