]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
cpufreq: intel_pstate: Consolidate policy verification
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Mar 2020 23:05:34 +0000 (00:05 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 14 Mar 2020 10:44:56 +0000 (11:44 +0100)
commitd5a2a6bb27f390f36c899907490d25ce1e83eec5
treefcf1dca34a75cd34029b5d1e3d696724c1234ab1
parent2c523b344dfa65a3738e7039832044aa133c75fb
cpufreq: intel_pstate: Consolidate policy verification

There is still some code duplication between intel_pstate_verify_policy()
and intel_cpufreq_verify_policy(), so avoid it by moving the common
code into a separate function and calling it from both these places.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c