Author: rnoland Date: Thu Jun 25 15:47:32 2009 New Revision: 194966 URL: http://svn.freebsd.org/changeset/base/194966
Log: 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 Modified: head/sys/dev/drm/drm_irq.c Modified: head/sys/dev/drm/drm_irq.c ============================================================================== --- head/sys/dev/drm/drm_irq.c Thu Jun 25 15:36:11 2009 (r194965) +++ head/sys/dev/drm/drm_irq.c Thu Jun 25 15:47:32 2009 (r194966) @@ -325,6 +325,10 @@ int drm_vblank_get(struct drm_device *de } } + if (dev->vblank[crtc].enabled) + dev->vblank[crtc].last = + dev->driver->get_vblank_counter(dev, crtc); + return ret; } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"