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.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/fence_gk20a.c') diff --git a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c index fe38ae57..23522882 100644 --- a/drivers/gpu/nvgpu/gk20a/fence_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fence_gk20a.c @@ -98,8 +98,8 @@ int gk20a_fence_install_fd(struct gk20a_fence *f) #endif } -static struct gk20a_fence *alloc_fence(const struct gk20a_fence_ops *ops, - struct sync_fence *sync_fence, bool wfi) +struct gk20a_fence *gk20a_alloc_fence(const struct gk20a_fence_ops *ops, + struct sync_fence *sync_fence, bool wfi) { struct gk20a_fence *f = kzalloc(sizeof(*f), GFP_KERNEL); if (!f) @@ -161,7 +161,7 @@ struct gk20a_fence *gk20a_fence_from_semaphore( return NULL; #endif - f = alloc_fence(&gk20a_semaphore_fence_ops, sync_fence, wfi); + f = gk20a_alloc_fence(&gk20a_semaphore_fence_ops, sync_fence, wfi); if (!f) { #ifdef CONFIG_SYNC sync_fence_put(sync_fence); @@ -216,7 +216,7 @@ struct gk20a_fence *gk20a_fence_from_syncpt(struct platform_device *host1x_pdev, } #endif - f = alloc_fence(&gk20a_syncpt_fence_ops, sync_fence, wfi); + f = gk20a_alloc_fence(&gk20a_syncpt_fence_ops, sync_fence, wfi); if (!f) { #ifdef CONFIG_SYNC if (sync_fence) -- cgit v1.2.2