summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Huang <kevinh@nvidia.com>2012-06-20 13:17:00 -0700
committerVarun Colbert <vcolbert@nvidia.com>2012-06-22 18:28:44 -0700
commit8f9e94066b8ec222764a9fd0a8a21889dfb79f00 (patch)
tree27818d5e20aff2aeaed649df6b0878f42ca4657a
parent89da52e28b4fbbe9af0310f3fd82adafc7fa1d23 (diff)
video: tegra: dc: Skip the vblank_int work if DC is disabled.
Bug 1000789 Bug 1003730 Change-Id: I7fbd703dde2044f2790e6a9b356ef8dca89ad8f3 Signed-off-by: Kevin Huang <kevinh@nvidia.com> Reviewed-on: http://git-master/r/110146 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com>
-rw-r--r--drivers/video/tegra/dc/dc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 419cd2c..664e17a 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -1852,6 +1852,11 @@ static void tegra_dc_vblank(struct work_struct *work)
mutex_lock(&dc->lock);
+ if (!dc->enabled) {
+ mutex_unlock(&dc->lock);
+ return;
+ }
+
/* use the new frame's bandwidth setting instead of max(current, new),
* skip this if we're using tegra_dc_one_shot_worker() */
if (!(dc->out->flags & TEGRA_DC_OUT_ONE_SHOT_MODE))