summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/pmu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu')
-rw-r--r--drivers/gpu/nvgpu/common/pmu/pmu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/pmu/pmu.c b/drivers/gpu/nvgpu/common/pmu/pmu.c
index c642a7bc..b9ac50be 100644
--- a/drivers/gpu/nvgpu/common/pmu/pmu.c
+++ b/drivers/gpu/nvgpu/common/pmu/pmu.c
@@ -594,3 +594,8 @@ void nvgpu_pmu_surface_free(struct gk20a *g, struct nvgpu_mem *mem)
594 nvgpu_dma_free(g, mem); 594 nvgpu_dma_free(g, mem);
595 memset(mem, 0, sizeof(struct nvgpu_mem)); 595 memset(mem, 0, sizeof(struct nvgpu_mem));
596} 596}
597
598struct gk20a *gk20a_from_pmu(struct nvgpu_pmu *pmu)
599{
600 return container_of(pmu, struct gk20a, pmu);
601}