Date: Thu, 25 Jun 2009 15:47:32 +0000 (UTC) From: Robert Noland <rnoland@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r194966 - head/sys/dev/drm Message-ID: <200906251547.n5PFlWmn055770@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906251547.n5PFlWmn055770>