]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
PM / OPP: Simplify dev_pm_opp_get_max_volt_latency()
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 23 Jan 2017 04:41:51 +0000 (10:11 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 Jan 2017 08:22:22 +0000 (09:22 +0100)
commitcdd3e614cfda724826ec8a522022709380b84597
tree86cf7b770f5f419a27d192d209210378a0f3bae8
parenta7f3987ea1af0a4b5a9003d4b22b2260e4afad03
PM / OPP: Simplify dev_pm_opp_get_max_volt_latency()

dev_pm_opp_get_max_volt_latency() calls _find_opp_table() two times
effectively.

Merge _get_regulator_count() into dev_pm_opp_get_max_volt_latency() to
avoid that.

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>
drivers/base/power/opp/core.c