]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/cpufreq/intel_pstate.c
cpufreq: intel_pstate: Drop redundant wrapper function
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 9 Mar 2017 15:30:38 +0000 (16:30 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 12 Mar 2017 22:07:58 +0000 (23:07 +0100)
commit5f98ced1c95e7706af6895f7b7b0d2216f075d59
tree9dea91aea5870de70740fbde6d47b02fc495aa1b
parent4495c08e84729385774601b5146d51d9e5849f81
cpufreq: intel_pstate: Drop redundant wrapper function

intel_pstate_hwp_set_policy() is a wrapper around
intel_pstate_hwp_set(), but the only value it adds is to check
hwp_active before calling the latter and one of its two callers
has already checked hwp_active before that happens, so in that
code path the additional check is redundant and using the wrapper
is rather pointless.

For this reason, drop intel_pstate_hwp_set_policy() and make its
callers invoke intel_pstate_hwp_set() directly (after checking
hwp_active).

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