From 19ca0279dd147b6036e289e41e81008edd385b2a Mon Sep 17 00:00:00 2001 From: Kevin Huang Date: Fri, 8 Jun 2012 16:15:55 -0700 Subject: video: tegra: dc: Use ref-count to mask vblank interrupt. Bug 990586 Change-Id: I63da2bd0aaae86070718e0d769b8c9555db18547 Signed-off-by: Kevin Huang Reviewed-on: http://git-master/r/107714 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo --- drivers/video/tegra/dc/dc_priv.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/video/tegra/dc/dc_priv.h') diff --git a/drivers/video/tegra/dc/dc_priv.h b/drivers/video/tegra/dc/dc_priv.h index 06f2a6061bf6..351998683008 100644 --- a/drivers/video/tegra/dc/dc_priv.h +++ b/drivers/video/tegra/dc/dc_priv.h @@ -128,6 +128,7 @@ struct tegra_dc { struct completion frame_end_complete; struct work_struct vblank_work; + long vblank_ref_count; struct { u64 underflows; @@ -292,6 +293,10 @@ static inline bool tegra_dc_is_yuv_planar(int fmt) return false; } +static inline void tegra_dc_unmask_interrupt(struct tegra_dc *dc, u32 int_val); +static inline void tegra_dc_mask_interrupt(struct tegra_dc *dc, u32 int_val); +static bool tegra_dc_windows_are_dirty(struct tegra_dc *dc); + void tegra_dc_setup_clk(struct tegra_dc *dc, struct clk *clk); extern struct tegra_dc_out_ops tegra_dc_rgb_ops; -- cgit v1.2.3