OSDN Git Service

cpufreq: CPPC: Don't set transition_latency
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 2 Apr 2018 07:20:53 +0000 (12:50 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 10 Apr 2018 06:38:02 +0000 (08:38 +0200)
Now that the driver has started to set transition_delay_us directly,
there is no need to set transition_latency along with it, as it is not
used by the cpufreq core.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cppc_cpufreq.c

index 8300a9f..38f65c3 100644 (file)
@@ -162,7 +162,6 @@ static int cppc_cpufreq_cpu_init(struct cpufreq_policy *policy)
                cpu->perf_caps.highest_perf;
        policy->cpuinfo.max_freq = cppc_dmi_max_khz;
 
-       policy->cpuinfo.transition_latency = cppc_get_transition_latency(cpu_num);
        policy->transition_delay_us = cppc_get_transition_latency(cpu_num) /
                NSEC_PER_USEC;
        policy->shared_type = cpu->shared_type;