Browse Source

cpufreq: Don't set transition_latency for setpolicy drivers

The transition_latency field isn't used for drivers with ->setpolicy()
callback present and there is no point setting it from the drivers.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Viresh Kumar 8 years ago
parent
commit
b8b78825a2
2 changed files with 0 additions and 2 deletions
  1. 0 1
      drivers/cpufreq/intel_pstate.c
  2. 0 1
      drivers/cpufreq/longrun.c

+ 0 - 1
drivers/cpufreq/intel_pstate.c

@@ -2138,7 +2138,6 @@ static int intel_pstate_cpu_init(struct cpufreq_policy *policy)
 	if (ret)
 	if (ret)
 		return ret;
 		return ret;
 
 
-	policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
 	if (IS_ENABLED(CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE))
 	if (IS_ENABLED(CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE))
 		policy->policy = CPUFREQ_POLICY_PERFORMANCE;
 		policy->policy = CPUFREQ_POLICY_PERFORMANCE;
 	else
 	else

+ 0 - 1
drivers/cpufreq/longrun.c

@@ -270,7 +270,6 @@ static int longrun_cpu_init(struct cpufreq_policy *policy)
 	/* cpuinfo and default policy values */
 	/* cpuinfo and default policy values */
 	policy->cpuinfo.min_freq = longrun_low_freq;
 	policy->cpuinfo.min_freq = longrun_low_freq;
 	policy->cpuinfo.max_freq = longrun_high_freq;
 	policy->cpuinfo.max_freq = longrun_high_freq;
-	policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
 	longrun_get_policy(policy);
 	longrun_get_policy(policy);
 
 
 	return 0;
 	return 0;