From 5900fbd9540ee067f755197025fcb0b060131bd9 Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Thu, 9 Jun 2016 14:41:24 -0700 Subject: 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 Reviewed-on: http://git-master/r/1162687 Reviewed-by: David Martinez Nieto GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/fence_gk20a.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.h') 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( u32 id, u32 value, bool wfi, bool need_sync_fence); +struct gk20a_fence *gk20a_alloc_fence(const struct gk20a_fence_ops *ops, + struct sync_fence *sync_fence, + bool wfi); + /* Fence operations */ void gk20a_fence_put(struct gk20a_fence *f); struct gk20a_fence *gk20a_fence_get(struct gk20a_fence *f); -- cgit v1.2.2