cpufreq: Don't set transition_latency for setpolicy drivers
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 19 Jul 2017 10:12:44 +0000 (15:42 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 25 Jul 2017 22:15:43 +0000 (00:15 +0200)
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>
drivers/cpufreq/intel_pstate.c
drivers/cpufreq/longrun.c

index b7fb8b7c980dc5d2eb2001e4790910cb5b399514..c1100a3e3325ca1f12ab19b1bea859bce75e684a 100644 (file)
@@ -2138,7 +2138,6 @@ static int intel_pstate_cpu_init(struct cpufreq_policy *policy)
        if (ret)
                return ret;
 
-       policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
        if (IS_ENABLED(CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE))
                policy->policy = CPUFREQ_POLICY_PERFORMANCE;
        else
index 074971b12635af04b7214f510c70e7e8c37ebcbf..542aa9adba1a407c26bc025c4272af700e5251df 100644 (file)
@@ -270,7 +270,6 @@ static int longrun_cpu_init(struct cpufreq_policy *policy)
        /* cpuinfo and default policy values */
        policy->cpuinfo.min_freq = longrun_low_freq;
        policy->cpuinfo.max_freq = longrun_high_freq;
-       policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL;
        longrun_get_policy(policy);
 
        return 0;