From bf0379997799e7f83514e974cd02aaaab85a4101 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Mon, 8 Jan 2018 15:41:39 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1662587 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu') 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) goto clean_up_runlist; } } - nvgpu_mutex_init(&runlist->mutex); + nvgpu_mutex_init(&runlist->runlist_lock); /* None of buffers is pinned if this value doesn't change. 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, runlist = &f->runlist_info[runlist_id]; - nvgpu_mutex_acquire(&runlist->mutex); + nvgpu_mutex_acquire(&runlist->runlist_lock); ret = vgpu_fifo_update_runlist_locked(g, runlist_id, chid, add, wait_for_finish); - nvgpu_mutex_release(&runlist->mutex); + nvgpu_mutex_release(&runlist->runlist_lock); return ret; } -- cgit v1.2.2