cpufreq: Consolidate cpufreq_update_current_freq() and __cpufreq_get()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 20 Jun 2019 03:05:49 +0000 (08:35 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 28 Jun 2019 09:17:12 +0000 (11:17 +0200)
commit5980752e6ef7079c0839576df10f8062d8a48883
tree41400aa6e5b346636f7c6636ee2c737afbfd3b17
parent9801522840cc1073f8064b4c979b7b6995c74bca
cpufreq: Consolidate cpufreq_update_current_freq() and __cpufreq_get()

Their implementations are quite similar, so modify
cpufreq_update_current_freq() somewhat and call it from
__cpufreq_get().

Also rename cpufreq_update_current_freq() to
cpufreq_verify_current_freq(), as that's what it is doing.

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