]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
gpu: nvgpu: Remove redundant locked variable
authorArto Merilainen <amerilainen@nvidia.com>
Tue, 8 Apr 2014 11:28:10 +0000 (14:28 +0300)
committerMrutyunjay Sawant <msawant@nvidia.com>
Mon, 14 Apr 2014 13:43:38 +0000 (06:43 -0700)
commit8d579e4b1a6a816eb7ce0e8e239410a81f23fdb7
treed4cf23afbbcf279f59c21242c8bddfc295dd24fb
parentd2a28da5b854358d367936b369c463c15be8373d
gpu: nvgpu: Remove redundant locked variable

Queue locked variable holds entirely redundant information about the
queue status and having the variable causes a race between lock() and
unlock() functions. This patch removes the locked variable.

Bug 1495617

Change-Id: I05682bfe7a23acc77c2bfe405938ace7d2b3d081
Signed-off-by: Arto Merilainen <amerilainen@nvidia.com>
Reviewed-on: http://git-master/r/393431
(cherry picked from commit d6fe45823ce0c63e103e619ece832909167f3bc5)
Reviewed-on: http://git-master/r/394903
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/gpu/nvgpu/gk20a/pmu_gk20a.c
drivers/gpu/nvgpu/gk20a/pmu_gk20a.h