From a3452ea763d666410e7b898e40b24f07e2cb1045 Mon Sep 17 00:00:00 2001 From: Bharat Nihalani Date: Tue, 9 Aug 2016 18:30:12 +0530 Subject: 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 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 Reviewed-by: Terje Bergstrom --- drivers/gpu/nvgpu/gk20a/channel_gk20a.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_gk20a.h') 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 { struct list_head ch_entry; /* channel's entry in TSG */ struct list_head jobs; - struct mutex jobs_lock; + spinlock_t jobs_lock; struct vm_gk20a *vm; -- cgit v1.2.2