diff options
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r-- | drivers/cpufreq/intel_pstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index 80ecc351d613..dfee5725903b 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c | |||
@@ -919,7 +919,8 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy) | |||
919 | if (!policy->cpuinfo.max_freq) | 919 | if (!policy->cpuinfo.max_freq) |
920 | return -ENODEV; | 920 | return -ENODEV; |
921 | 921 | ||
922 | if (policy->policy == CPUFREQ_POLICY_PERFORMANCE) { | 922 | if (policy->policy == CPUFREQ_POLICY_PERFORMANCE && |
923 | policy->max >= policy->cpuinfo.max_freq) { | ||
923 | limits.min_perf_pct = 100; | 924 | limits.min_perf_pct = 100; |
924 | limits.min_perf = int_tofp(1); | 925 | limits.min_perf = int_tofp(1); |
925 | limits.max_policy_pct = 100; | 926 | limits.max_policy_pct = 100; |