summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/mm_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/mm_vgpu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
index c6780cf7..70b50e7e 100644
--- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c
@@ -200,7 +200,7 @@ static void vgpu_vm_remove_support(struct vm_gk20a *vm)
200 int err; 200 int err;
201 201
202 gk20a_dbg_fn(""); 202 gk20a_dbg_fn("");
203 mutex_lock(&vm->update_gmmu_lock); 203 nvgpu_mutex_acquire(&vm->update_gmmu_lock);
204 204
205 /* TBD: add a flag here for the unmap code to recognize teardown 205 /* TBD: add a flag here for the unmap code to recognize teardown
206 * and short-circuit any otherwise expensive operations. */ 206 * and short-circuit any otherwise expensive operations. */
@@ -231,7 +231,7 @@ static void vgpu_vm_remove_support(struct vm_gk20a *vm)
231 if (nvgpu_alloc_initialized(&vm->user)) 231 if (nvgpu_alloc_initialized(&vm->user))
232 nvgpu_alloc_destroy(&vm->user); 232 nvgpu_alloc_destroy(&vm->user);
233 233
234 mutex_unlock(&vm->update_gmmu_lock); 234 nvgpu_mutex_release(&vm->update_gmmu_lock);
235 235
236 /* vm is not used anymore. release it. */ 236 /* vm is not used anymore. release it. */
237 kfree(vm); 237 kfree(vm);
@@ -401,7 +401,7 @@ static int vgpu_vm_alloc_share(struct gk20a_as_share *as_share,
401 401
402 vm->mapped_buffers = RB_ROOT; 402 vm->mapped_buffers = RB_ROOT;
403 403
404 mutex_init(&vm->update_gmmu_lock); 404 nvgpu_mutex_init(&vm->update_gmmu_lock);
405 kref_init(&vm->ref); 405 kref_init(&vm->ref);
406 INIT_LIST_HEAD(&vm->reserved_va_list); 406 INIT_LIST_HEAD(&vm->reserved_va_list);
407 407