svn commit: r194966 - head/sys/dev/drm

Robert Noland rnoland at FreeBSD.org
Thu Jun 25 15:47:33 UTC 2009


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;
 }
 


More information about the svn-src-all mailing list