diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-12-08 06:02:16 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-12-20 18:15:51 -0500 |
commit | 339a67b2e84cea20a59334b0640b9ab7e0d75ca9 (patch) | |
tree | fdefebf92b85a7b7b1ccea562f6b000fecf056a4 /drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | |
parent | 75e52218cec5ccfbb8ec61cb8ba5e41f5e5ec7e5 (diff) |
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 <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1269579
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/tsg_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/tsg_gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
41 | 41 | ||
42 | struct list_head ch_list; | 42 | struct list_head ch_list; |
43 | int num_active_channels; | 43 | int num_active_channels; |
44 | struct mutex ch_list_lock; | 44 | struct rw_semaphore ch_list_lock; |
45 | 45 | ||
46 | unsigned int timeslice_us; | 46 | unsigned int timeslice_us; |
47 | unsigned int timeslice_timeout; | 47 | unsigned int timeslice_timeout; |