diff mbox

[2/4] drm: Move IRQ related fields to proper section

Message ID 1418830903-9060-2-git-send-email-thierry.reding@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Thierry Reding Dec. 17, 2014, 3:41 p.m. UTC
From: Thierry Reding <treding@nvidia.com>

The .irq and .irq_enabled fields are part of the VBLANK interrupt
handling infrastructure, so move them to the appropriate section within
the structure.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
 include/drm/drmP.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Alex Deucher Dec. 17, 2014, 8:41 p.m. UTC | #1
On Wed, Dec 17, 2014 at 10:41 AM, Thierry Reding
<thierry.reding@gmail.com> wrote:
> From: Thierry Reding <treding@nvidia.com>
>
> The .irq and .irq_enabled fields are part of the VBLANK interrupt
> handling infrastructure, so move them to the appropriate section within
> the structure.
>
> Signed-off-by: Thierry Reding <treding@nvidia.com>

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>

> ---
>  include/drm/drmP.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/drm/drmP.h b/include/drm/drmP.h
> index 227e67c52d5e..c05289d1d5f6 100644
> --- a/include/drm/drmP.h
> +++ b/include/drm/drmP.h
> @@ -744,8 +744,6 @@ struct drm_device {
>
>         /** \name Context support */
>         /*@{ */
> -       bool irq_enabled;               /**< True if irq handler is enabled */
> -       int irq;
>
>         __volatile__ long context_flag; /**< Context swapping flag */
>         int last_context;               /**< Last current context */
> @@ -753,6 +751,8 @@ struct drm_device {
>
>         /** \name VBLANK IRQ support */
>         /*@{ */
> +       bool irq_enabled;
> +       int irq;
>
>         /*
>          * At load time, disabling the vblank interrupt won't be allowed since
> --
> 2.1.3
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
diff mbox

Patch

diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 227e67c52d5e..c05289d1d5f6 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -744,8 +744,6 @@  struct drm_device {
 
 	/** \name Context support */
 	/*@{ */
-	bool irq_enabled;		/**< True if irq handler is enabled */
-	int irq;
 
 	__volatile__ long context_flag;	/**< Context swapping flag */
 	int last_context;		/**< Last current context */
@@ -753,6 +751,8 @@  struct drm_device {
 
 	/** \name VBLANK IRQ support */
 	/*@{ */
+	bool irq_enabled;
+	int irq;
 
 	/*
 	 * At load time, disabling the vblank interrupt won't be allowed since