summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/mm/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm/vm.c')
-rw-r--r--drivers/gpu/nvgpu/common/mm/vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/mm/vm.c b/drivers/gpu/nvgpu/common/mm/vm.c
index 1e6c4601..7f0b3d10 100644
--- a/drivers/gpu/nvgpu/common/mm/vm.c
+++ b/drivers/gpu/nvgpu/common/mm/vm.c
@@ -225,7 +225,7 @@ static int nvgpu_init_sema_pool(struct vm_gk20a *vm)
225 /* 225 /*
226 * Don't waste the memory on semaphores if we don't need them. 226 * Don't waste the memory on semaphores if we don't need them.
227 */ 227 */
228 if (nvgpu_is_enabled(g, NVGPU_HAS_SYNCPOINTS)) { 228 if (nvgpu_has_syncpoints(g)) {
229 return 0; 229 return 0;
230 } 230 }
231 231
@@ -609,7 +609,7 @@ static void __nvgpu_vm_remove(struct vm_gk20a *vm)
609 * pool involves unmapping a GMMU mapping which means aquiring the 609 * pool involves unmapping a GMMU mapping which means aquiring the
610 * update_gmmu_lock. 610 * update_gmmu_lock.
611 */ 611 */
612 if (!nvgpu_is_enabled(g, NVGPU_HAS_SYNCPOINTS)) { 612 if (!nvgpu_has_syncpoints(g)) {
613 if (vm->sema_pool) { 613 if (vm->sema_pool) {
614 nvgpu_semaphore_pool_unmap(vm->sema_pool, vm); 614 nvgpu_semaphore_pool_unmap(vm->sema_pool, vm);
615 nvgpu_semaphore_pool_put(vm->sema_pool); 615 nvgpu_semaphore_pool_put(vm->sema_pool);