summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2015-03-17 18:09:44 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-04-04 22:17:29 -0400
commit9f4405aeb532692b215337985fb371e859817a88 (patch)
tree7d127f1d699f6158a33cf4c697aee74ddef9acbd /drivers/gpu/nvgpu/gk20a/mm_gk20a.c
parentf18a6ea389dfe629b12fde32f16ac1fd3a552b79 (diff)
gpu: nvgpu: Use common VM deinit
Change-Id: Ia9aa9cfaaad9e43820fc47f6620bf01c435dad23 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/718726
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 31f01528..8ed9d0aa 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -2171,13 +2171,7 @@ static void gk20a_vm_remove_support_nofree(struct vm_gk20a *vm)
2171 free_gmmu_pages(vm, entry); 2171 free_gmmu_pages(vm, entry);
2172 } 2172 }
2173 2173
2174 unmap_gmmu_pages(&vm->pdb); 2174 gk20a_deinit_vm(vm);
2175 free_gmmu_pages(vm, &vm->pdb);
2176
2177 kfree(vm->pdb.entries);
2178 gk20a_allocator_destroy(&vm->vma[gmmu_page_size_small]);
2179 if (vm->big_pages)
2180 gk20a_allocator_destroy(&vm->vma[gmmu_page_size_big]);
2181 2175
2182 mutex_unlock(&vm->update_gmmu_lock); 2176 mutex_unlock(&vm->update_gmmu_lock);
2183} 2177}