gpu: nvgpu: move check_gp_put() and update_gp_get() to worker
authorDeepak Nibade <dnibade@nvidia.com>
Mon, 30 Nov 2015 10:39:48 +0000 (15:39 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 21 Dec 2015 15:51:57 +0000 (07:51 -0800)
commit06ee8880a37e64b6b507f8e3dd031d7bf9259e6e
treea02ac19c0e5aa5e35eedf5011d241209500f0543
parent5e6f517439ef215bcd5ee514881f68d3d3020948
gpu: nvgpu: move check_gp_put() and update_gp_get() to worker

We currently call check_gp_put() and update_gp_get()
in submit path and this takes about 5uS for both checks
check_gp_put() - 3.5 uS
update_gp_get() - 1.5 uS

But this book keeping can be moved to gk20a_channel_update()
to save some submit time

Note that check_gp_put() needs to be done inside submit
lock

Bug 200141116

Change-Id: I276400111be0421eb673695e2f2899ff52e344b4
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/839232
(cherry picked from commit 289617e8bf01bde9aab45dfa3a1c6a1241e6eb78)
Reviewed-on: http://git-master/r/841583
(cherry picked from commit bdb8b2097de3a6b7ff0fc1f641074b1c9ca99201)
Reviewed-on: http://git-master/r/921948
Tested-by: Nikhil Joshi <nikhilj@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/gpu/nvgpu/gk20a/channel_gk20a.c