diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.c | 5 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index 92698745..87c4f6be 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c | |||
@@ -82,11 +82,12 @@ static inline bool gk20a_fence_is_valid(struct gk20a_fence *f) | |||
82 | return valid; | 82 | return valid; |
83 | } | 83 | } |
84 | 84 | ||
85 | int gk20a_fence_wait(struct gk20a *g, struct gk20a_fence *f, int timeout) | 85 | int gk20a_fence_wait(struct gk20a *g, struct gk20a_fence *f, |
86 | unsigned long timeout) | ||
86 | { | 87 | { |
87 | if (f && gk20a_fence_is_valid(f)) { | 88 | if (f && gk20a_fence_is_valid(f)) { |
88 | if (!nvgpu_platform_is_silicon(g)) | 89 | if (!nvgpu_platform_is_silicon(g)) |
89 | timeout = (u32)MAX_SCHEDULE_TIMEOUT; | 90 | timeout = MAX_SCHEDULE_TIMEOUT; |
90 | return f->ops->wait(f, timeout); | 91 | return f->ops->wait(f, timeout); |
91 | } | 92 | } |
92 | return 0; | 93 | return 0; |
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index c26cd250..87fa9fdb 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |||
@@ -85,7 +85,8 @@ void gk20a_init_fence(struct gk20a_fence *f, | |||
85 | /* Fence operations */ | 85 | /* Fence operations */ |
86 | void gk20a_fence_put(struct gk20a_fence *f); | 86 | void gk20a_fence_put(struct gk20a_fence *f); |
87 | struct gk20a_fence *gk20a_fence_get(struct gk20a_fence *f); | 87 | struct gk20a_fence *gk20a_fence_get(struct gk20a_fence *f); |
88 | int gk20a_fence_wait(struct gk20a *g, struct gk20a_fence *f, int timeout); | 88 | int gk20a_fence_wait(struct gk20a *g, struct gk20a_fence *f, |
89 | unsigned long timeout); | ||
89 | bool gk20a_fence_is_expired(struct gk20a_fence *f); | 90 | bool gk20a_fence_is_expired(struct gk20a_fence *f); |
90 | int gk20a_fence_install_fd(struct gk20a_fence *f); | 91 | int gk20a_fence_install_fd(struct gk20a_fence *f); |
91 | 92 | ||