diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/mm')
-rw-r--r-- | drivers/gpu/nvgpu/common/mm/vm.c | 4 |
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 c6c99b31..88af6456 100644 --- a/drivers/gpu/nvgpu/common/mm/vm.c +++ b/drivers/gpu/nvgpu/common/mm/vm.c | |||
@@ -175,7 +175,7 @@ static int nvgpu_init_sema_pool(struct vm_gk20a *vm) | |||
175 | /* | 175 | /* |
176 | * Don't waste the memory on semaphores if we don't need them. | 176 | * Don't waste the memory on semaphores if we don't need them. |
177 | */ | 177 | */ |
178 | if (g->gpu_characteristics.flags & NVGPU_GPU_FLAGS_HAS_SYNCPOINTS) | 178 | if (nvgpu_is_enabled(g, NVGPU_HAS_SYNCPOINTS)) |
179 | return 0; | 179 | return 0; |
180 | 180 | ||
181 | if (vm->sema_pool) | 181 | if (vm->sema_pool) |
@@ -520,7 +520,7 @@ static void __nvgpu_vm_remove(struct vm_gk20a *vm) | |||
520 | * pool involves unmapping a GMMU mapping which means aquiring the | 520 | * pool involves unmapping a GMMU mapping which means aquiring the |
521 | * update_gmmu_lock. | 521 | * update_gmmu_lock. |
522 | */ | 522 | */ |
523 | if (!(g->gpu_characteristics.flags & NVGPU_GPU_FLAGS_HAS_SYNCPOINTS)) { | 523 | if (!nvgpu_is_enabled(g, NVGPU_HAS_SYNCPOINTS)) { |
524 | if (vm->sema_pool) { | 524 | if (vm->sema_pool) { |
525 | nvgpu_semaphore_pool_unmap(vm->sema_pool, vm); | 525 | nvgpu_semaphore_pool_unmap(vm->sema_pool, vm); |
526 | nvgpu_semaphore_pool_put(vm->sema_pool); | 526 | nvgpu_semaphore_pool_put(vm->sema_pool); |