From 339a67b2e84cea20a59334b0640b9ab7e0d75ca9 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Thu, 8 Dec 2016 13:02:16 +0200 Subject: gpu: nvgpu: replace tsg list mutex with rwsem Lock only for modifications to the tsg channel list, and allow multiple concurrent readers. Bug 1848834 Bug 1814773 Change-Id: Ie3938d4239cfe36a14211f4649ce72b7fc3e2fa4 Signed-off-by: Konsta Holtta Reviewed-on: http://git-master/r/1269579 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h index dbfb068b..8509398c 100644 --- a/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/tsg_gk20a.h @@ -41,7 +41,7 @@ struct tsg_gk20a { struct list_head ch_list; int num_active_channels; - struct mutex ch_list_lock; + struct rw_semaphore ch_list_lock; unsigned int timeslice_us; unsigned int timeslice_timeout; -- cgit v1.2.2