Merge back earlier cpufreq material for v4.5.
[deliverable/linux.git] / drivers / cpufreq / intel_pstate.c
index efc581392bd14724da3d81e30f8eb19cdf253d12..cd83d477e32d412394da574e8e02adb6dd7be832 100644 (file)
@@ -1162,7 +1162,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);
This page took 0.025005 seconds and 5 git commands to generate.