From 394da0f2210ad298b3ecdfddc7ab0c57124cd7d0 Mon Sep 17 00:00:00 2001 From: Lakshmanan M Date: Wed, 3 Aug 2016 20:25:03 +0530 Subject: gpu: nvgpu: Free the channel used semaphore index Free the channel used semaphore index during gk20a_free_channel(). Bug 1793819 Change-Id: I4215d05f7f3ba0636e2abb1803011711c8a38301 Signed-off-by: Lakshmanan M Reviewed-on: http://git-master/r/1196877 (cherry picked from commit 2c5720de506caac29629f6a1c578e6da80b1a135) Reviewed-on: http://git-master/r/1198883 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h b/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h index 58081b56..29a01ab8 100644 --- a/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -174,6 +174,7 @@ void gk20a_semaphore_pool_put(struct gk20a_semaphore_pool *p); struct gk20a_semaphore *gk20a_semaphore_alloc(struct channel_gk20a *ch); void gk20a_semaphore_put(struct gk20a_semaphore *s); void gk20a_semaphore_get(struct gk20a_semaphore *s); +void gk20a_semaphore_free_hw_sema(struct channel_gk20a *ch); /* * Return the address of a specific semaphore. -- cgit v1.2.2