From 8f9e94066b8ec222764a9fd0a8a21889dfb79f00 Mon Sep 17 00:00:00 2001 From: Kevin Huang Date: Wed, 20 Jun 2012 13:17:00 -0700 Subject: video: tegra: dc: Skip the vblank_int work if DC is disabled. Bug 1000789 Bug 1003730 Change-Id: I7fbd703dde2044f2790e6a9b356ef8dca89ad8f3 Signed-off-by: Kevin Huang Reviewed-on: http://git-master/r/110146 Reviewed-by: Varun Colbert Tested-by: Varun Colbert --- drivers/video/tegra/dc/dc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/video/tegra/dc/dc.c') diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c index 419cd2c0b18d..664e17a87b1a 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)) -- cgit v1.2.3