diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/os_fence_android.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/os_fence_android.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/os_fence_android.c b/drivers/gpu/nvgpu/common/linux/os_fence_android.c index d8f70639..9be8c6c0 100644 --- a/drivers/gpu/nvgpu/common/linux/os_fence_android.c +++ b/drivers/gpu/nvgpu/common/linux/os_fence_android.c | |||
@@ -52,6 +52,14 @@ void nvgpu_os_fence_android_drop_ref(struct nvgpu_os_fence *s) | |||
52 | nvgpu_os_fence_clear(s); | 52 | nvgpu_os_fence_clear(s); |
53 | } | 53 | } |
54 | 54 | ||
55 | void nvgpu_os_fence_android_install_fd(struct nvgpu_os_fence *s, int fd) | ||
56 | { | ||
57 | struct sync_fence *fence = nvgpu_get_sync_fence(s); | ||
58 | |||
59 | sync_fence_get(fence); | ||
60 | sync_fence_install(fence, fd); | ||
61 | } | ||
62 | |||
55 | int nvgpu_os_fence_fdget(struct nvgpu_os_fence *fence_out, | 63 | int nvgpu_os_fence_fdget(struct nvgpu_os_fence *fence_out, |
56 | struct channel_gk20a *c, int fd) | 64 | struct channel_gk20a *c, int fd) |
57 | { | 65 | { |