diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index 2facb595..cd49b4a9 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -92,10 +92,10 @@ static struct channel_gk20a *allocate_channel(struct fifo_gk20a *f) | |||
92 | platform = gk20a_get_platform(f->g->dev); | 92 | platform = gk20a_get_platform(f->g->dev); |
93 | 93 | ||
94 | nvgpu_mutex_acquire(&f->free_chs_mutex); | 94 | nvgpu_mutex_acquire(&f->free_chs_mutex); |
95 | if (!list_empty(&f->free_chs)) { | 95 | if (!nvgpu_list_empty(&f->free_chs)) { |
96 | ch = list_first_entry(&f->free_chs, struct channel_gk20a, | 96 | ch = nvgpu_list_first_entry(&f->free_chs, channel_gk20a, |
97 | free_chs); | 97 | free_chs); |
98 | list_del(&ch->free_chs); | 98 | nvgpu_list_del(&ch->free_chs); |
99 | WARN_ON(atomic_read(&ch->ref_count)); | 99 | WARN_ON(atomic_read(&ch->ref_count)); |
100 | WARN_ON(ch->referenceable); | 100 | WARN_ON(ch->referenceable); |
101 | f->used_channels++; | 101 | f->used_channels++; |
@@ -120,7 +120,7 @@ static void free_channel(struct fifo_gk20a *f, | |||
120 | /* refcount is zero here and channel is in a freed/dead state */ | 120 | /* refcount is zero here and channel is in a freed/dead state */ |
121 | nvgpu_mutex_acquire(&f->free_chs_mutex); | 121 | nvgpu_mutex_acquire(&f->free_chs_mutex); |
122 | /* add to head to increase visibility of timing-related bugs */ | 122 | /* add to head to increase visibility of timing-related bugs */ |
123 | list_add(&ch->free_chs, &f->free_chs); | 123 | nvgpu_list_add(&ch->free_chs, &f->free_chs); |
124 | f->used_channels--; | 124 | f->used_channels--; |
125 | nvgpu_mutex_release(&f->free_chs_mutex); | 125 | nvgpu_mutex_release(&f->free_chs_mutex); |
126 | 126 | ||
@@ -3007,7 +3007,7 @@ int gk20a_init_channel_support(struct gk20a *g, u32 chid) | |||
3007 | if (err) | 3007 | if (err) |
3008 | goto fail_8; | 3008 | goto fail_8; |
3009 | 3009 | ||
3010 | list_add(&c->free_chs, &g->fifo.free_chs); | 3010 | nvgpu_list_add(&c->free_chs, &g->fifo.free_chs); |
3011 | 3011 | ||
3012 | return 0; | 3012 | return 0; |
3013 | 3013 | ||