Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: arm_big_little: Make ->get_transition_latency() mandatory

All users of arm_big_little driver are defining it and there is no need
to keep it optional.

Make it mandatory to remove the always true conditional statement.

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

authored by

Viresh Kumar and committed by
Rafael J. Wysocki
768608a5 b8b78825

+4 -6
+4 -6
drivers/cpufreq/arm_big_little.c
··· 483 483 return ret; 484 484 } 485 485 486 - if (arm_bL_ops->get_transition_latency) 487 - policy->cpuinfo.transition_latency = 488 - arm_bL_ops->get_transition_latency(cpu_dev); 489 - else 490 - policy->cpuinfo.transition_latency = CPUFREQ_ETERNAL; 486 + policy->cpuinfo.transition_latency = 487 + arm_bL_ops->get_transition_latency(cpu_dev); 491 488 492 489 if (is_bL_switching_enabled()) 493 490 per_cpu(cpu_last_req_freq, policy->cpu) = clk_get_cpu_rate(policy->cpu); ··· 619 622 return -EBUSY; 620 623 } 621 624 622 - if (!ops || !strlen(ops->name) || !ops->init_opp_table) { 625 + if (!ops || !strlen(ops->name) || !ops->init_opp_table || 626 + !ops->get_transition_latency) { 623 627 pr_err("%s: Invalid arm_bL_ops, exiting\n", __func__); 624 628 return -ENODEV; 625 629 }