summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
diff options
context:
space:
mode:
authorBharat Nihalani <bnihalani@nvidia.com>2016-08-09 09:00:12 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-08-31 17:04:10 -0400
commita3452ea763d666410e7b898e40b24f07e2cb1045 (patch)
treeebeb7d92518c2cb096677f2c2886a457a441b237 /drivers/gpu/nvgpu/gk20a/channel_gk20a.h
parent91241ca8e975dd9352e31e06ca408618477fac91 (diff)
gpu: nvgpu: gk20a: Use spin_lock for jobs_lock
This is done to boost performance of the GPU submit time, which is critical for compute use-cases. Bug 200215465 Bug 1804898 Conflicts: drivers/gpu/nvgpu/gk20a/channel_gk20a.c Change-Id: Ic4884ee4eac910b92b84a47fdc1b2e9f26b2f1f0 Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-on: http://git-master/r/1199860 Reviewed-on: http://git-master/r/1209834 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/channel_gk20a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
index 6469603b..4b2019dd 100644
--- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.h
@@ -124,7 +124,7 @@ struct channel_gk20a {
124 struct list_head ch_entry; /* channel's entry in TSG */ 124 struct list_head ch_entry; /* channel's entry in TSG */
125 125
126 struct list_head jobs; 126 struct list_head jobs;
127 struct mutex jobs_lock; 127 spinlock_t jobs_lock;
128 128
129 struct vm_gk20a *vm; 129 struct vm_gk20a *vm;
130 130