Keep track of the hardware counter more aggressively while interrupts

are enabled.  This should help to reduce cases where the hardware
counter reference jumps by large amounts.

MFC after:	3 days
This commit is contained in:
Robert Noland 2009-06-25 15:47:32 +00:00
parent a429bdf087
commit 2642e635f2

View File

@ -325,6 +325,10 @@ int drm_vblank_get(struct drm_device *dev, int crtc)
}
}
if (dev->vblank[crtc].enabled)
dev->vblank[crtc].last =
dev->driver->get_vblank_counter(dev, crtc);
return ret;
}