diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/os_fence_android_sema.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/os_fence_android_sema.c b/drivers/gpu/nvgpu/common/linux/os_fence_android_sema.c index 2bb71c99..25832417 100644 --- a/drivers/gpu/nvgpu/common/linux/os_fence_android_sema.c +++ b/drivers/gpu/nvgpu/common/linux/os_fence_android_sema.c | |||
@@ -34,12 +34,14 @@ int nvgpu_os_fence_sema_wait_gen_cmd(struct nvgpu_os_fence *s, | |||
34 | int max_wait_cmds) | 34 | int max_wait_cmds) |
35 | { | 35 | { |
36 | int err; | 36 | int err; |
37 | const int wait_cmd_size = 8; | 37 | int wait_cmd_size; |
38 | int num_wait_cmds; | 38 | int num_wait_cmds; |
39 | int i; | 39 | int i; |
40 | struct nvgpu_semaphore *sema; | 40 | struct nvgpu_semaphore *sema; |
41 | struct sync_fence *sync_fence = nvgpu_get_sync_fence(s); | 41 | struct sync_fence *sync_fence = nvgpu_get_sync_fence(s); |
42 | 42 | ||
43 | wait_cmd_size = c->g->ops.fifo.get_sema_wait_cmd_size(); | ||
44 | |||
43 | num_wait_cmds = sync_fence->num_fences; | 45 | num_wait_cmds = sync_fence->num_fences; |
44 | if (num_wait_cmds == 0) | 46 | if (num_wait_cmds == 0) |
45 | return 0; | 47 | return 0; |