|
@@ -2008,7 +2008,8 @@ static int intel_pstate_set_policy(struct cpufreq_policy *policy)
|
|
static void intel_pstate_adjust_policy_max(struct cpufreq_policy *policy,
|
|
static void intel_pstate_adjust_policy_max(struct cpufreq_policy *policy,
|
|
struct cpudata *cpu)
|
|
struct cpudata *cpu)
|
|
{
|
|
{
|
|
- if (cpu->pstate.max_pstate_physical > cpu->pstate.max_pstate &&
|
|
|
|
|
|
+ if (!hwp_active &&
|
|
|
|
+ cpu->pstate.max_pstate_physical > cpu->pstate.max_pstate &&
|
|
policy->max < policy->cpuinfo.max_freq &&
|
|
policy->max < policy->cpuinfo.max_freq &&
|
|
policy->max > cpu->pstate.max_freq) {
|
|
policy->max > cpu->pstate.max_freq) {
|
|
pr_debug("policy->max > max non turbo frequency\n");
|
|
pr_debug("policy->max > max non turbo frequency\n");
|