diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-06-09 17:41:24 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-06-14 17:01:10 -0400 |
commit | 5900fbd9540ee067f755197025fcb0b060131bd9 (patch) | |
tree | 318b3a02c5b8308529647654f2981ec16d2e6ff6 /drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |
parent | 4e21f4a148c94982bbbd7be18c272b06738918e9 (diff) |
gpu: nvgpu: Export and rename alloc_fence
Rename alloc_fence() to gk20a_alloc_fence() and allow this function
to be called by the channel_sync_gk20a.c code.
Bug 1732449
JIRA DNVGPU-12
Change-Id: Ic17131db2c8545832a2e8caacbd092cf970af4d1
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1162687
Reviewed-by: David Martinez Nieto <dmartineznie@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h index 75e135e9..ff00bcf1 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.h | |||
@@ -59,6 +59,10 @@ struct gk20a_fence *gk20a_fence_from_syncpt( | |||
59 | u32 id, u32 value, bool wfi, | 59 | u32 id, u32 value, bool wfi, |
60 | bool need_sync_fence); | 60 | bool need_sync_fence); |
61 | 61 | ||
62 | struct gk20a_fence *gk20a_alloc_fence(const struct gk20a_fence_ops *ops, | ||
63 | struct sync_fence *sync_fence, | ||
64 | bool wfi); | ||
65 | |||
62 | /* Fence operations */ | 66 | /* Fence operations */ |
63 | void gk20a_fence_put(struct gk20a_fence *f); | 67 | void gk20a_fence_put(struct gk20a_fence *f); |
64 | struct gk20a_fence *gk20a_fence_get(struct gk20a_fence *f); | 68 | struct gk20a_fence *gk20a_fence_get(struct gk20a_fence *f); |