diff options
author | Kevin Huang <kevinh@nvidia.com> | 2012-03-01 11:00:39 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-23 17:32:18 -0700 |
commit | e69464e9a87c18a884157b9af649a23eb35bf7a2 (patch) | |
tree | e3312531f6e00c88bd62b4cde4a6ccec0d97aa89 /drivers/video/tegra/dc/dc_priv.h | |
parent | 541b58b286a5479d85cf39e32e903b289e238954 (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 <kevinh@nvidia.com>
Reviewed-on: http://git-master/r/86730
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Rebase-Id: R66a17f07eba68febe95c0d2681da357efbc48423
Diffstat (limited to 'drivers/video/tegra/dc/dc_priv.h')
-rw-r--r-- | drivers/video/tegra/dc/dc_priv.h | 1 |
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 d22faded0140..38196f92d8b0 100644 --- a/drivers/video/tegra/dc/dc_priv.h +++ b/drivers/video/tegra/dc/dc_priv.h @@ -100,6 +100,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; |