X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fcpufreq%2Fintel_pstate.c;h=eb1158532de31e7aee418162135a7495b10f9860;hb=a92f63cd13776e35d3ccb63187d1d95ab16f24a5;hp=b7de5bd76a31743f52cc9095845495e596d0817d;hpb=4415b335282591e76762cd9e6dc60932a7595fc3;p=linux-2.6-microblaze.git diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index b7de5bd76a31..eb1158532de3 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -571,9 +571,10 @@ static inline void update_turbo_state(void) static int min_perf_pct_min(void) { struct cpudata *cpu = all_cpu_data[0]; + int turbo_pstate = cpu->pstate.turbo_pstate; - return DIV_ROUND_UP(cpu->pstate.min_pstate * 100, - cpu->pstate.turbo_pstate); + return turbo_pstate ? + DIV_ROUND_UP(cpu->pstate.min_pstate * 100, turbo_pstate) : 0; } static s16 intel_pstate_get_epb(struct cpudata *cpu_data)