gpu: nvgpu: Segregate volt unit members based on their accessibility

Currently all unit specific private members are inside ucode_volt_inf.h.
This patch moves the members specific to pmuif to ucode_volt_inf.h and
local to volt.h.
Append all unit specific local functions with volt/nvgpu.
Move volt specific rpc handler from g->pmu to g->pmu->volt.

NVGPU-4492

Change-Id: I626e002b3876c6c5330dec4396b7661b986c6119
Signed-off-by: Abdul Salam <absalam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2299555
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Abdul Salam
2020-02-25 12:06:28 +05:30
committed by Alex Waterman
parent 7fb3410d72
commit 29d4831780
17 changed files with 266 additions and 224 deletions

View File

@@ -1447,7 +1447,7 @@ static int nvgpu_gpu_get_voltage(struct gk20a *g,
nvgpu_speculation_barrier();
err = nvgpu_volt_get_curr_volt_ps35(g, &args->voltage);
err = nvgpu_pmu_volt_get_curr_volt_ps35(g, &args->voltage);
if (err) {
return err;
}