gpu: nvgpu: fix error handling for mutex_acquire()
authorDeepak Nibade <dnibade@nvidia.com>
Mon, 28 Jul 2014 12:47:07 +0000 (17:47 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Mon, 4 Aug 2014 17:58:09 +0000 (10:58 -0700)
commit0ef2d043a94be1637533829afee2d6a3427201e1
treeb30cec6a35c455a97469590535d6160bb88540db
parent109cfcf5fbedd29ecc4fe6b2951d4efbc1ec48ec
gpu: nvgpu: fix error handling for mutex_acquire()

Currently if pmu_mutex_acquire() fails, we disable ELPG
and move ahead. But it is not clear why it is required
to disable ELPG in case where we fail to acquire mutex.

Hence skip disabling ELPG if mutex_acquire() fails

Bug 1533644

Change-Id: I7e8e99a701d0ba071eb31ac17582b04072ee55eb
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/448131
(cherry picked from commit 789c256dd74e2b2b0481e25b2af1b2202ea6f582)
Reviewed-on: http://git-master/r/450268
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar S <nkumars@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
drivers/gpu/nvgpu/gk20a/fifo_gk20a.c