aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-12-16 05:21:15 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-04-23 04:32:44 -0400
commit7c1a38e391745cca72627979e5e02924bed5b43d (patch)
tree8eb813777bf5d2ef1d13061ad1c557d55f76a4f8 /include/drm/drmP.h
parent2177a2182f3f375f64d9938dd884895c3872c380 (diff)
drm/irq: track the irq installed in drm_irq_install in dev->irq
To get rid of the dev->bus->get_irq callback we need to pass in the desired irq explicitly into drm_irq_install. To avoid having to do the same for drm_irq_unistall just track it internally. That leaves drivers with less room to botch things up. v2: Add the hunk lost in an earlier patch to this one (Thierry). v3: Fix up the totally fumbled logic in drm_irq_install and use the local variable consistently. Spotted by both Thierry and Laurent. Shame on me for failing to properly test the rebase version of this patch ... Cc: Thierry Reding <thierry.reding@gmail.com> Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 85682d959c7e..8e8c392d6fa8 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -1107,6 +1107,8 @@ struct drm_device {
1107 /** \name Context support */ 1107 /** \name Context support */
1108 /*@{ */ 1108 /*@{ */
1109 bool irq_enabled; /**< True if irq handler is enabled */ 1109 bool irq_enabled; /**< True if irq handler is enabled */
1110 int irq;
1111
1110 __volatile__ long context_flag; /**< Context swapping flag */ 1112 __volatile__ long context_flag; /**< Context swapping flag */
1111 int last_context; /**< Last current context */ 1113 int last_context; /**< Last current context */
1112 /*@} */ 1114 /*@} */