diff options
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 5 |
1 files changed, 3 insertions, 2 deletions
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) | |||
571 | static int min_perf_pct_min(void) | 571 | static int min_perf_pct_min(void) |
572 | { | 572 | { |
573 | struct cpudata *cpu = all_cpu_data[0]; | 573 | struct cpudata *cpu = all_cpu_data[0]; |
574 | int turbo_pstate = cpu->pstate.turbo_pstate; | ||
574 | 575 | ||
575 | return DIV_ROUND_UP(cpu->pstate.min_pstate * 100, | 576 | return turbo_pstate ? |
576 | cpu->pstate.turbo_pstate); | 577 | DIV_ROUND_UP(cpu->pstate.min_pstate * 100, turbo_pstate) : 0; |
577 | } | 578 | } |
578 | 579 | ||
579 | static s16 intel_pstate_get_epb(struct cpudata *cpu_data) | 580 | static s16 intel_pstate_get_epb(struct cpudata *cpu_data) |