gpu: nvgpu: Refactor Clk unit.

As a part of refactoring, need to move clk sw/pmu setup functions
from pmu_pstate unit to clk unit as it belongs there.

In this patch the public API is moved from pmu_pstate to clk unit and
named according to private/public API.

NVGPU-4491

Change-Id: I90a7dc821e3a3633c7ac657b398f90e374663d61
Signed-off-by: Abdul Salam <absalam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2282937
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Abdul Salam
2020-01-27 16:56:45 +05:30
committed by Alex Waterman
parent 273ffae939
commit 11b34e891f
21 changed files with 282 additions and 211 deletions

View File

@@ -945,7 +945,7 @@ int nvgpu_pmu_perf_vfe_get_freq_margin(struct gk20a *g, u32 *fmargin_mhz)
int status = 0;
u8 fmargin_idx;
fmargin_idx = nvgpu_clk_fll_get_fmargin_idx(g);
fmargin_idx = nvgpu_pmu_clk_fll_get_fmargin_idx(g);
if (fmargin_idx == 0U) {
return 0;
}