cpufreq: intel_pstate: Fix ratio setting for min_perf_pct
[muen/linux.git] / drivers / cpufreq / intel_pstate.c
index 75648325183275ecc2f3b58809b6ac7b5b0df30b..2386d7036e909c656eef133d1e9854edd2b226cd 100644 (file)
@@ -572,7 +572,7 @@ static int min_perf_pct_min(void)
        int turbo_pstate = cpu->pstate.turbo_pstate;
 
        return turbo_pstate ?
        int turbo_pstate = cpu->pstate.turbo_pstate;
 
        return turbo_pstate ?
-               DIV_ROUND_UP(cpu->pstate.min_pstate * 100, turbo_pstate) : 0;
+               (cpu->pstate.min_pstate * 100 / turbo_pstate) : 0;
 }
 
 static s16 intel_pstate_get_epb(struct cpudata *cpu_data)
 }
 
 static s16 intel_pstate_get_epb(struct cpudata *cpu_data)