diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-04-25 16:51:27 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-16 13:24:57 -0400 |
commit | 80a6291c9c5e373a3a534ba100b616b6789fb568 (patch) | |
tree | 20a5c5c3c1ea0933fa9db6af61a89c2ebd027ae0 /drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |
parent | 7bc97ca7d5e0cee265014ce5fd682858c3b63629 (diff) |
gpu: nvgpu: Use nvgpu_cond in semaphore wq
Change semaphore wait queue to use nvgpu_cond instead of Linux wait
queue.
JIRA NVGPU-14
Change-Id: I3be5097ded168300b4480e986218d9f4fd6104b1
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1469852
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index 87fa9fdb..c479f359 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |||
@@ -17,8 +17,6 @@ | |||
17 | #ifndef _GK20A_FENCE_H_ | 17 | #ifndef _GK20A_FENCE_H_ |
18 | #define _GK20A_FENCE_H_ | 18 | #define _GK20A_FENCE_H_ |
19 | 19 | ||
20 | #include <linux/wait.h> | ||
21 | |||
22 | #include <nvgpu/kref.h> | 20 | #include <nvgpu/kref.h> |
23 | 21 | ||
24 | struct platform_device; | 22 | struct platform_device; |
@@ -42,7 +40,7 @@ struct gk20a_fence { | |||
42 | 40 | ||
43 | /* Valid for fences created from semaphores: */ | 41 | /* Valid for fences created from semaphores: */ |
44 | struct nvgpu_semaphore *semaphore; | 42 | struct nvgpu_semaphore *semaphore; |
45 | wait_queue_head_t *semaphore_wq; | 43 | struct nvgpu_cond *semaphore_wq; |
46 | 44 | ||
47 | /* Valid for fences created from syncpoints: */ | 45 | /* Valid for fences created from syncpoints: */ |
48 | struct platform_device *host1x_pdev; | 46 | struct platform_device *host1x_pdev; |
@@ -59,7 +57,7 @@ int gk20a_fence_from_semaphore( | |||
59 | struct gk20a_fence *fence_out, | 57 | struct gk20a_fence *fence_out, |
60 | struct sync_timeline *timeline, | 58 | struct sync_timeline *timeline, |
61 | struct nvgpu_semaphore *semaphore, | 59 | struct nvgpu_semaphore *semaphore, |
62 | wait_queue_head_t *semaphore_wq, | 60 | struct nvgpu_cond *semaphore_wq, |
63 | bool wfi, bool need_sync_fence); | 61 | bool wfi, bool need_sync_fence); |
64 | 62 | ||
65 | int gk20a_fence_from_syncpt( | 63 | int gk20a_fence_from_syncpt( |