summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-03-23 06:02:14 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-31 14:34:25 -0400
commit56df8c58088b5c8b4a09ce6f5e195614251bf8d0 (patch)
treeb353d912fb446a60d09c94bea610b9297209a959 /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
parentc8c1d02261521b5361a9a0daf28238740edc316d (diff)
gpu: nvgpu: use new List APIs to free channels
Use new APIs from <nvgpu/list.h> to access free channel list Define channel_gk20a_from_free_chs() to convert a list node to struct channel_gk20a Jira NVGPU-13 Change-Id: Idaf58f04be1c7fc553bea7c8de45951bf82bb340 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1303025 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
index 06269fa5..a399e95f 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h
@@ -169,7 +169,7 @@ struct fifo_gk20a {
169 unsigned int used_channels; 169 unsigned int used_channels;
170 struct channel_gk20a *channel; 170 struct channel_gk20a *channel;
171 /* zero-kref'd channels here */ 171 /* zero-kref'd channels here */
172 struct list_head free_chs; 172 struct nvgpu_list_node free_chs;
173 struct nvgpu_mutex free_chs_mutex; 173 struct nvgpu_mutex free_chs_mutex;
174 struct nvgpu_mutex gr_reset_mutex; 174 struct nvgpu_mutex gr_reset_mutex;
175 175