mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Restructure boardobjgrpmask unit
This patch does the following for boardobjgrpmask unit. 1. Remove unused functions and its pointers. 2. Append public functions with nvgpu. 3. Remove unnecessary inclusion of header files. 4. Make local functions as static. 5. Rename function names to increase readibility. 6. Remove boardobj* from static functions. Jira NVGPU-1977 Change-Id: Ie6d3bd8f55784d29ae4ba720fb3998487ad2b942 Signed-off-by: Abdul Salam <absalam@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2107167 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
20cd4ce54f
commit
bc10ef568e
@@ -42,7 +42,7 @@ static int volt_device_pmu_data_init_super(struct gk20a *g,
|
||||
struct voltage_device *pdev;
|
||||
struct nv_pmu_volt_volt_device_boardobj_set *pset;
|
||||
|
||||
status = boardobj_pmudatainit_super(g, pboard_obj, ppmudata);
|
||||
status = nvgpu_boardobj_pmu_data_init_super(g, pboard_obj, ppmudata);
|
||||
if (status != 0) {
|
||||
return status;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ static int construct_volt_device(struct gk20a *g,
|
||||
struct voltage_device *pvolt_dev = NULL;
|
||||
int status = 0;
|
||||
|
||||
status = boardobj_construct_super(g, ppboardobj, size, pargs);
|
||||
status = nvgpu_boardobj_construct_super(g, ppboardobj, size, pargs);
|
||||
if (status != 0) {
|
||||
return status;
|
||||
}
|
||||
@@ -546,12 +546,12 @@ int nvgpu_volt_dev_sw_setup(struct gk20a *g)
|
||||
|
||||
nvgpu_log_info(g, " ");
|
||||
|
||||
status = boardobjgrpconstruct_e32(g,
|
||||
status = nvgpu_boardobjgrp_construct_e32(g,
|
||||
&g->perf_pmu->volt.volt_dev_metadata.volt_devices);
|
||||
if (status != 0) {
|
||||
nvgpu_err(g,
|
||||
"error creating boardobjgrp for volt rail, status - 0x%x",
|
||||
status);
|
||||
"error creating boardobjgrp for volt rail, "
|
||||
"status - 0x%x", status);
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user