diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-09-21 17:24:59 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-10-26 14:10:01 -0400 |
commit | 2fa54c94a67e13d84df980d646674dde0ad27168 (patch) | |
tree | 2bf49a012542caa2ad278392b313305f74fe96f6 /drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | |
parent | 93eea1d72934b28db4707e5aa7ab4dab65d89551 (diff) |
gpu: nvgpu: Remove global debugfs variable
Remove a global debugfs variable and instead save the allocator
debugfs root node in the gk20a struct.
Bug 1799159
Change-Id: If4eed34fa24775e962001e34840b334658f2321c
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1225611
(cherry picked from commit 1908fde10bb1fb60ce898ea329f5a441a3e4297a)
Reviewed-on: http://git-master/r/1242390
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c index 0a9a1fde..cd4bab76 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | |||
@@ -3651,7 +3651,7 @@ static int pmu_process_init_msg(struct pmu_gk20a *pmu, | |||
3651 | pv->get_pmu_init_msg_pmu_sw_mg_size(init)) & | 3651 | pv->get_pmu_init_msg_pmu_sw_mg_size(init)) & |
3652 | ~(PMU_DMEM_ALLOC_ALIGNMENT - 1); | 3652 | ~(PMU_DMEM_ALLOC_ALIGNMENT - 1); |
3653 | u32 size = end - start; | 3653 | u32 size = end - start; |
3654 | gk20a_bitmap_allocator_init(&pmu->dmem, "gk20a_pmu_dmem", | 3654 | gk20a_bitmap_allocator_init(g, &pmu->dmem, "gk20a_pmu_dmem", |
3655 | start, size, | 3655 | start, size, |
3656 | PMU_DMEM_ALLOC_ALIGNMENT, 0); | 3656 | PMU_DMEM_ALLOC_ALIGNMENT, 0); |
3657 | } | 3657 | } |