diff options
author | Lakshmanan M <lm@nvidia.com> | 2016-08-03 10:55:03 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-08-10 16:37:47 -0400 |
commit | 394da0f2210ad298b3ecdfddc7ab0c57124cd7d0 (patch) | |
tree | 3cd29ce0f360951236c8644599ece3da97f83d48 /drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h | |
parent | 59a115f3fe6076de4c9af69de836cc82d6430544 (diff) |
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 <lm@nvidia.com>
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 <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/semaphore_gk20a.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * 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); | |||
174 | struct gk20a_semaphore *gk20a_semaphore_alloc(struct channel_gk20a *ch); | 174 | struct gk20a_semaphore *gk20a_semaphore_alloc(struct channel_gk20a *ch); |
175 | void gk20a_semaphore_put(struct gk20a_semaphore *s); | 175 | void gk20a_semaphore_put(struct gk20a_semaphore *s); |
176 | void gk20a_semaphore_get(struct gk20a_semaphore *s); | 176 | void gk20a_semaphore_get(struct gk20a_semaphore *s); |
177 | void gk20a_semaphore_free_hw_sema(struct channel_gk20a *ch); | ||
177 | 178 | ||
178 | /* | 179 | /* |
179 | * Return the address of a specific semaphore. | 180 | * Return the address of a specific semaphore. |