Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 391d9aef authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki
Browse files

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 457e99e6
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -265,10 +265,6 @@ static int cpufreq_init(struct cpufreq_policy *policy)
		if (ret)
			dev_err(cpu_dev, "%s: failed to mark OPPs as shared: %d\n",
				__func__, ret);

		of_property_read_u32(np, "clock-latency", &transition_latency);
	} else {
		transition_latency = dev_pm_opp_get_max_clock_latency(cpu_dev);
	}

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

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

	transition_latency = dev_pm_opp_get_max_clock_latency(cpu_dev);
	if (!transition_latency)
		transition_latency = CPUFREQ_ETERNAL;