diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-03-23 06:02:14 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-31 14:34:25 -0400 |
commit | 56df8c58088b5c8b4a09ce6f5e195614251bf8d0 (patch) | |
tree | b353d912fb446a60d09c94bea610b9297209a959 /drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |
parent | c8c1d02261521b5361a9a0daf28238740edc316d (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/vgpu/fifo_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index 497f8c91..cfe9322e 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |||
@@ -296,7 +296,7 @@ static int vgpu_init_fifo_setup_sw(struct gk20a *g) | |||
296 | 296 | ||
297 | init_runlist(g, f); | 297 | init_runlist(g, f); |
298 | 298 | ||
299 | INIT_LIST_HEAD(&f->free_chs); | 299 | nvgpu_init_list_node(&f->free_chs); |
300 | nvgpu_mutex_init(&f->free_chs_mutex); | 300 | nvgpu_mutex_init(&f->free_chs_mutex); |
301 | 301 | ||
302 | for (chid = 0; chid < f->num_channels; chid++) { | 302 | for (chid = 0; chid < f->num_channels; chid++) { |