|
@@ -637,8 +637,8 @@ static int intel_pstate_cpu_exit(struct cpufreq_policy *policy)
|
|
|
|
|
|
static int intel_pstate_cpu_init(struct cpufreq_policy *policy)
|
|
|
{
|
|
|
- int rc, min_pstate, max_pstate;
|
|
|
struct cpudata *cpu;
|
|
|
+ int rc;
|
|
|
|
|
|
rc = intel_pstate_init_cpu(policy->cpu);
|
|
|
if (rc)
|
|
@@ -652,9 +652,8 @@ static int intel_pstate_cpu_init(struct cpufreq_policy *policy)
|
|
|
else
|
|
|
policy->policy = CPUFREQ_POLICY_POWERSAVE;
|
|
|
|
|
|
- intel_pstate_get_min_max(cpu, &min_pstate, &max_pstate);
|
|
|
- policy->min = min_pstate * 100000;
|
|
|
- policy->max = max_pstate * 100000;
|
|
|
+ policy->min = cpu->pstate.min_pstate * 100000;
|
|
|
+ policy->max = cpu->pstate.turbo_pstate * 100000;
|
|
|
|
|
|
/* cpuinfo and default policy values */
|
|
|
policy->cpuinfo.min_freq = cpu->pstate.min_pstate * 100000;
|