diff options
author | Thierry Reding <treding@nvidia.com> | 2017-12-14 13:50:19 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2017-12-21 14:52:35 +0100 |
commit | 363541e8eeed16fdf696252008ddee823730f82c (patch) | |
tree | 7da7080b5c171a166c3339aa7f608096b24676d3 /drivers/gpu/drm/tegra/dc.h | |
parent | 1087fac18b8e3ec8fadf1595bbc46dce7ff08a81 (diff) | |
download | talos-obmc-linux-363541e8eeed16fdf696252008ddee823730f82c.tar.gz talos-obmc-linux-363541e8eeed16fdf696252008ddee823730f82c.zip |
drm/tegra: dc: Remove redundant spinlock
The spinlock is only used to serialize accesses to the DC_CMD_INT_MASK
register. However, this register is accesses either with interrupts
masked (in tegra_crtc_atomic_enable()) or protected by the vbl_lock and
vblank_time_lock spinlocks of the DRM device. Therefore, these accesses
don't need any extra serialization and the lock can be removed.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/tegra/dc.h')
-rw-r--r-- | drivers/gpu/drm/tegra/dc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dc.h b/drivers/gpu/drm/tegra/dc.h index d680027fa272..7dd02f07244f 100644 --- a/drivers/gpu/drm/tegra/dc.h +++ b/drivers/gpu/drm/tegra/dc.h @@ -71,7 +71,6 @@ struct tegra_dc { struct host1x_client client; struct host1x_syncpt *syncpt; struct device *dev; - spinlock_t lock; struct drm_crtc base; unsigned int powergate; |