int i915_wait_irq(drm_device_t * dev, int irq_nr)
static int i915_wait_irq(drm_device_t * dev, int irq_nr)
int i915_wait_irq(drm_device_t * dev, int irq_nr){	drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;	int ret = 0;	DRM_DEBUG("%s irq_nr=%d breadcrumb=%d\n", __FUNCTION__, irq_nr,		  READ_BREADCRUMB(dev_priv));	if (READ_BREADCRUMB(dev_priv) >= irq_nr)		return 0;	dev_priv->sarea_priv->perf_boxes |= I915_BOX_WAIT;	DRM_WAIT_ON(ret, dev_priv->irq_queue, 3 * DRM_HZ,		    READ_BREADCRUMB(dev_priv) >= irq_nr);	if (ret == DRM_ERR(EBUSY)) {		DRM_ERROR("%s: EBUSY -- rec: %d emitted: %d\n",			  __FUNCTION__,			  READ_BREADCRUMB(dev_priv), (int)dev_priv->counter);	}	dev_priv->sarea_priv->last_dispatch = READ_BREADCRUMB(dev_priv);	return ret;}