aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorVincent Guittot <[email protected]>2023-12-11 10:48:53 +0000
committerIngo Molnar <[email protected]>2023-12-23 14:52:35 +0000
commit50b813b147e9eb6546a1fc49d4e703e6d23691f2 (patch)
tree98d305e88c2c5486f5364e39dcdb5845b5aae7e5 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentenergy_model: Use a fixed reference frequency (diff)
downloadkernel-50b813b147e9eb6546a1fc49d4e703e6d23691f2.tar.gz
kernel-50b813b147e9eb6546a1fc49d4e703e6d23691f2.zip
cpufreq/cppc: Move and rename cppc_cpufreq_{perf_to_khz|khz_to_perf}()
Move and rename cppc_cpufreq_perf_to_khz() and cppc_cpufreq_khz_to_perf() to use them outside cppc_cpufreq in topology_init_cpu_capacity_cppc(). Modify the interface to use struct cppc_perf_caps *caps instead of struct cppc_cpudata *cpu_data as we only use the fields of cppc_perf_caps. cppc_cpufreq was converting the lowest and nominal freq from MHz to kHz before using them. We move this conversion inside cppc_perf_to_khz and cppc_khz_to_perf to make them generic and usable outside cppc_cpufreq. No functional change Signed-off-by: Vincent Guittot <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Tested-by: Pierre Gondois <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Acked-by: Viresh Kumar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions