mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: pmu: update init APIs
Remove the second parameter for the pmu_early_init() and pmu_init() functions so they only require the gk20a object. The g->pmu was always passed for this parameter. And this makes the API signature match the other init functions in the driver. JIRA NVGPU-3980 Change-Id: Iae9361a5f14bc5c1d02f4ddb6583f30b71b22d59 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2202968 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup <vinodg@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
Alex Waterman
parent
78c1f328bb
commit
b53ec4731e
@@ -346,7 +346,7 @@ int nvgpu_finalize_poweron(struct gk20a *g)
|
||||
return err;
|
||||
}
|
||||
|
||||
err = g->ops.pmu.pmu_early_init(g, &g->pmu);
|
||||
err = g->ops.pmu.pmu_early_init(g);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "failed to early init pmu sw");
|
||||
goto done;
|
||||
@@ -523,7 +523,7 @@ int nvgpu_finalize_poweron(struct gk20a *g)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NVGPU_LS_PMU
|
||||
err = nvgpu_pmu_rtos_init(g, g->pmu);
|
||||
err = nvgpu_pmu_rtos_init(g);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "failed to init gk20a pmu");
|
||||
nvgpu_mutex_release(&g->tpc_pg_lock);
|
||||
|
||||
Reference in New Issue
Block a user