diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-09 16:30:38 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-03-12 23:07:58 +0100 |
commit | 5f98ced1c95e7706af6895f7b7b0d2216f075d59 (patch) | |
tree | 9dea91aea5870de70740fbde6d47b02fc495aa1b /drivers/cpufreq/sc520_freq.c | |
parent | 4495c08e84729385774601b5146d51d9e5849f81 (diff) |
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>
Diffstat (limited to 'drivers/cpufreq/sc520_freq.c')
0 files changed, 0 insertions, 0 deletions