diff options
| author | Viresh Kumar <[email protected]> | 2019-07-04 07:36:22 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2019-07-08 21:56:39 +0000 |
| commit | c57b25bdf7cd374af106992356536bf5df7c255b (patch) | |
| tree | 315b068194893c0bec7c125f3d5502487949f55a /drivers/pci/controller/pci-host-common.c | |
| parent | cpufreq: Register notifiers with the PM QoS framework (diff) | |
| download | kernel-c57b25bdf7cd374af106992356536bf5df7c255b.tar.gz kernel-c57b25bdf7cd374af106992356536bf5df7c255b.zip | |
cpufreq: intel_pstate: Reuse refresh_frequency_limits()
The implementation of intel_pstate_update_max_freq() is quite similar to
refresh_frequency_limits(), lets reuse it.
Finding minimum of policy->user_policy.max and policy->cpuinfo.max_freq
in intel_pstate_update_max_freq() is redundant as cpufreq_set_policy()
will call the ->verify() callback of intel-pstate driver, which will do
this comparison anyway and so dropping it from
intel_pstate_update_max_freq() doesn't harm.
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-common.c')
0 files changed, 0 insertions, 0 deletions
