path: root/drivers/video/tegra/dc/dc_priv.h
diff options
authorKevin Huang <>2012-03-01 11:00:39 -0800
committerSimone Willett <>2012-03-08 14:21:44 -0800
commit4da74e0798023dc7abc9993566b03433783a6afa (patch)
tree9b07ee67cc4a7ad0539221d63fa4b9508a83ae9c /drivers/video/tegra/dc/dc_priv.h
parente0610a8cc34cfee232b78223d03ac0b02954d4bd (diff)
video: tegra: dc: Fix the race condition of one-shot work.
Add lock to prevent race condition between cancellation of old delayed work and schedule of new delayed work. Bug 936337 Change-Id: I52df82e92279163841546127c72be9879ef810d0 Signed-off-by: Kevin Huang <> Reviewed-on: http://git-master/r/86730 Reviewed-by: Simone Willett <> Tested-by: Simone Willett <>
Diffstat (limited to 'drivers/video/tegra/dc/dc_priv.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/tegra/dc/dc_priv.h b/drivers/video/tegra/dc/dc_priv.h
index 3d4d092c753c..a07b3db00510 100644
--- a/drivers/video/tegra/dc/dc_priv.h
+++ b/drivers/video/tegra/dc/dc_priv.h
@@ -101,6 +101,7 @@ struct tegra_dc {
wait_queue_head_t wq;
struct mutex lock;
+ struct mutex one_shot_lock;
struct resource *fb_mem;
struct tegra_fb_info *fb;