diff options
author | Seema Khowala <seemaj@nvidia.com> | 2018-01-08 18:41:39 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-04 00:42:57 -0400 |
commit | bf0379997799e7f83514e974cd02aaaab85a4101 (patch) | |
tree | 218537b6b64305565a34a8956bf7940f9e64d6ac /drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |
parent | ea926889657b255e753baf10a96c7c12facd831c (diff) |
gpu: nvgpu: rename mutex to runlist_lock
Rename mutex to runlist_lock in fifo_runlist_info_gk20a
struct. This is good to have for code readability.
Bug 2065990
Bug 2043838
Change-Id: I716685e3fad538458181d2a9fe592410401862b9
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1662587
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/fifo_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c index d077f329..3ea326b8 100644 --- a/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |||
@@ -249,7 +249,7 @@ static int init_runlist(struct gk20a *g, struct fifo_gk20a *f) | |||
249 | goto clean_up_runlist; | 249 | goto clean_up_runlist; |
250 | } | 250 | } |
251 | } | 251 | } |
252 | nvgpu_mutex_init(&runlist->mutex); | 252 | nvgpu_mutex_init(&runlist->runlist_lock); |
253 | 253 | ||
254 | /* None of buffers is pinned if this value doesn't change. | 254 | /* None of buffers is pinned if this value doesn't change. |
255 | Otherwise, one of them (cur_buffer) must have been pinned. */ | 255 | Otherwise, one of them (cur_buffer) must have been pinned. */ |
@@ -585,12 +585,12 @@ int vgpu_fifo_update_runlist(struct gk20a *g, u32 runlist_id, | |||
585 | 585 | ||
586 | runlist = &f->runlist_info[runlist_id]; | 586 | runlist = &f->runlist_info[runlist_id]; |
587 | 587 | ||
588 | nvgpu_mutex_acquire(&runlist->mutex); | 588 | nvgpu_mutex_acquire(&runlist->runlist_lock); |
589 | 589 | ||
590 | ret = vgpu_fifo_update_runlist_locked(g, runlist_id, chid, add, | 590 | ret = vgpu_fifo_update_runlist_locked(g, runlist_id, chid, add, |
591 | wait_for_finish); | 591 | wait_for_finish); |
592 | 592 | ||
593 | nvgpu_mutex_release(&runlist->mutex); | 593 | nvgpu_mutex_release(&runlist->runlist_lock); |
594 | return ret; | 594 | return ret; |
595 | } | 595 | } |
596 | 596 | ||