]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: acpi-cpufreq: use cached frequency mapping when possible
authorSteve Muckle <steve.muckle@linaro.org>
Wed, 13 Jul 2016 20:25:27 +0000 (13:25 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 21 Jul 2016 20:28:32 +0000 (22:28 +0200)
commit46c26ef907ffd31a11607cd447efd8f4998e0150
tree7a8384759382e0d91cd7db9d71684e98b153f2cf
parentc1b7a095050a90b3b52e1e6eb9afd12363e43ba9
cpufreq: acpi-cpufreq: use cached frequency mapping when possible

A call to cpufreq_driver_resolve_freq will cache the mapping from
the desired target frequency to the frequency table index. If there
is a mapping for the desired target frequency then use it instead of
looking up the mapping again.

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