Skip to content

Commit c9be304

Browse files
vireshkAlex Shi
authored andcommitted
cpufreq: dt: OPP layers handles clock-latency for V1 bindings as well
"clock-latency" is handled by OPP layer for all bindings and so there is no need to make special calls for V1 bindings. Use dev_pm_opp_get_max_clock_latency() for both the cases. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> (cherry picked from commit 391d9aef8145204e0a5d67be3bd1fc45c5396dae) Signed-off-by: Alex Shi <alex.shi@linaro.org>
1 parent c561922 commit c9be304

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/cpufreq/cpufreq-dt.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,6 @@ static int cpufreq_init(struct cpufreq_policy *policy)
265265
if (ret)
266266
dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n",
267267
__func__, ret);
268-
269-
of_property_read_u32(np, "clock-latency", &transition_latency);
270-
} else {
271-
transition_latency = dev_pm_opp_get_max_clock_latency(cpu_dev);
272268
}
273269

274270
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
@@ -279,6 +275,7 @@ static int cpufreq_init(struct cpufreq_policy *policy)
279275

280276
of_property_read_u32(np, "voltage-tolerance", &priv->voltage_tolerance);
281277

278+
transition_latency = dev_pm_opp_get_max_clock_latency(cpu_dev);
282279
if (!transition_latency)
283280
transition_latency = CPUFREQ_ETERNAL;
284281

0 commit comments

Comments
 (0)