Lines 2088-2098
static void intel_pstate_adjust_policy_max(struct cpufreq_policy *policy,
Link Here
|
2088 |
|
2088 |
|
2089 |
static int intel_pstate_verify_policy(struct cpufreq_policy *policy) |
2089 |
static int intel_pstate_verify_policy(struct cpufreq_policy *policy) |
2090 |
{ |
2090 |
{ |
|
|
2091 |
int max_freq; |
2091 |
struct cpudata *cpu = all_cpu_data[policy->cpu]; |
2092 |
struct cpudata *cpu = all_cpu_data[policy->cpu]; |
2092 |
|
2093 |
|
2093 |
update_turbo_state(); |
2094 |
update_turbo_state(); |
|
|
2095 |
max_freq = intel_pstate_get_max_freq(cpu); |
2096 |
|
2097 |
if (acpi_ppc && policy->max == policy->cpuinfo.max_freq && |
2098 |
max_freq != policy->cpuinfo.max_freq) { |
2099 |
/* |
2100 |
* System was not running under any constraints, but the |
2101 |
* current max possible frequency is changed. So reset |
2102 |
* policy limits. |
2103 |
*/ |
2104 |
policy->cpuinfo.max_freq = policy->max = max_freq; |
2105 |
} |
2106 |
|
2094 |
cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, |
2107 |
cpufreq_verify_within_limits(policy, policy->cpuinfo.min_freq, |
2095 |
intel_pstate_get_max_freq(cpu)); |
2108 |
max_freq); |
2096 |
|
2109 |
|
2097 |
if (policy->policy != CPUFREQ_POLICY_POWERSAVE && |
2110 |
if (policy->policy != CPUFREQ_POLICY_POWERSAVE && |
2098 |
policy->policy != CPUFREQ_POLICY_PERFORMANCE) |
2111 |
policy->policy != CPUFREQ_POLICY_PERFORMANCE) |