]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/cpufreq/acpi-cpufreq.c
cpufreq: acpi-cpufreq: Use cpufreq_cpu_get_raw() in ->get()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Sep 2015 00:17:49 +0000 (02:17 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 16 Sep 2015 00:17:49 +0000 (02:17 +0200)
commit1f0bd44e937468446d080b98b5669844744c24a1
tree74168ece217e8bf201daa329f28db8a83fbe4616
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
cpufreq: acpi-cpufreq: Use cpufreq_cpu_get_raw() in ->get()

cpufreq_cpu_get() called by get_cur_freq_on_cpu() is overkill,
because the ->get() callback is always invoked in a context in
which all of the conditions checked by cpufreq_cpu_get() are
guaranteed to be satisfied.

Use cpufreq_cpu_get_raw() instead of it and drop the
corresponding cpufreq_cpu_put() from get_cur_freq_on_cpu().

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