i915: Only schedule vblank tasklet if there are scheduled swaps pending.
This fixes issues on X server startup with versions of xf86-video-intel that enable the IRQ before they have a context ID.main
parent
881ba56992
commit
7af93dd984
|
@ -171,6 +171,7 @@ irqreturn_t i915_driver_irq_handler(DRM_IRQ_ARGS)
|
||||||
DRM_WAKEUP(&dev->vbl_queue);
|
DRM_WAKEUP(&dev->vbl_queue);
|
||||||
drm_vbl_send_signals(dev);
|
drm_vbl_send_signals(dev);
|
||||||
|
|
||||||
|
if (dev_priv->swaps_pending > 0)
|
||||||
drm_locked_tasklet(dev, i915_vblank_tasklet);
|
drm_locked_tasklet(dev, i915_vblank_tasklet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue