Skip to content

Commit 13b147b

Browse files
asdfugilvireshk
authored andcommitted
cpufreq: apple-soc: Set fallback transition latency to APPLE_DVFS_TRANSITION_TIMEOUT
The driver already assumes transitions will not take longer than APPLE_DVFS_TRANSITION_TIMEOUT in apple_soc_cpufreq_set_target(), so it makes little sense to set CPUFREQ_ETERNAL as the transition latency when the transistion latency is not given by the opp-table. Reviewed-by: Christian Loehle <christian.loehle@arm.com> Signed-off-by: Nick Chan <towinchenmi@gmail.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 0dc21f6 commit 13b147b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cpufreq/apple-soc-cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static int apple_soc_cpufreq_init(struct cpufreq_policy *policy)
291291

292292
transition_latency = dev_pm_opp_get_max_transition_latency(cpu_dev);
293293
if (!transition_latency)
294-
transition_latency = CPUFREQ_ETERNAL;
294+
transition_latency = APPLE_DVFS_TRANSITION_TIMEOUT * NSEC_PER_USEC;
295295

296296
policy->cpuinfo.transition_latency = transition_latency;
297297
policy->dvfs_possible_from_any_cpu = true;

0 commit comments

Comments
 (0)