cpufreq: Reuse cpufreq_driver_resolve_freq() in __cpufreq_driver_target()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 29 Jun 2021 06:27:07 +0000 (11:57 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Jun 2021 17:45:41 +0000 (19:45 +0200)
commitf9ccdec24d91ffddf1c6f4173b0e191fc08c7d14
treec509af76f620b481f209b3a1685ed78c1b0f323a
parent3e0f897fd92662f0ff21ca1759d724a9ad574858
cpufreq: Reuse cpufreq_driver_resolve_freq() in __cpufreq_driver_target()

__cpufreq_driver_target() open codes cpufreq_driver_resolve_freq(), lets
make the former reuse the later.

Separate out __resolve_freq() to accept relation as well as an argument
and use it at both the locations.

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