diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index a5aeae08..c886101c 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c | |||
@@ -19,6 +19,7 @@ | |||
19 | 19 | ||
20 | #include <nvgpu/semaphore.h> | 20 | #include <nvgpu/semaphore.h> |
21 | #include <nvgpu/kmem.h> | 21 | #include <nvgpu/kmem.h> |
22 | #include <nvgpu/soc.h> | ||
22 | 23 | ||
23 | #include "gk20a.h" | 24 | #include "gk20a.h" |
24 | #include "channel_gk20a.h" | 25 | #include "channel_gk20a.h" |
@@ -80,10 +81,10 @@ static inline bool gk20a_fence_is_valid(struct gk20a_fence *f) | |||
80 | return valid; | 81 | return valid; |
81 | } | 82 | } |
82 | 83 | ||
83 | int gk20a_fence_wait(struct gk20a_fence *f, int timeout) | 84 | int gk20a_fence_wait(struct gk20a *g, struct gk20a_fence *f, int timeout) |
84 | { | 85 | { |
85 | if (f && gk20a_fence_is_valid(f)) { | 86 | if (f && gk20a_fence_is_valid(f)) { |
86 | if (!tegra_platform_is_silicon()) | 87 | if (!nvgpu_platform_is_silicon(g)) |
87 | timeout = (u32)MAX_SCHEDULE_TIMEOUT; | 88 | timeout = (u32)MAX_SCHEDULE_TIMEOUT; |
88 | return f->ops->wait(f, timeout); | 89 | return f->ops->wait(f, timeout); |
89 | } | 90 | } |