drm: small fix in drm_send_vblank_event()
authorRob Clark <robdclark@gmail.com>
Mon, 10 Dec 2012 16:49:46 +0000 (10:49 -0600)
committerRob Clark <robdclark@gmail.com>
Sun, 17 Feb 2013 22:55:42 +0000 (17:55 -0500)
Initialize e->pipe.. some drivers set this themselves, others do not.
Setting it in drm_send_vblank_event() should help ensure more consistent
behavior with the different drivers.

Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/drm_irq.c

index 38e7992..a6a8643 100644 (file)
@@ -867,6 +867,7 @@ void drm_send_vblank_event(struct drm_device *dev, int crtc,
 
                now = get_drm_timestamp();
        }
+       e->pipe = crtc;
        send_vblank_event(dev, e, seq, &now);
 }
 EXPORT_SYMBOL(drm_send_vblank_event);