diff options
author | rnoland <rnoland@FreeBSD.org> | 2009-06-25 15:47:32 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2009-06-25 15:47:32 +0000 |
commit | e96ab5a0ecb1b0ab6ce67c702d929064312609b1 (patch) | |
tree | 3f999a380fa496c6e7bedf5320c379bab59f9fb6 | |
parent | c191a3bf7a1a95d73234b1cc468e3f239be5785c (diff) | |
download | FreeBSD-src-e96ab5a0ecb1b0ab6ce67c702d929064312609b1.zip FreeBSD-src-e96ab5a0ecb1b0ab6ce67c702d929064312609b1.tar.gz |
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
-rw-r--r-- | sys/dev/drm/drm_irq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/drm/drm_irq.c b/sys/dev/drm/drm_irq.c index be513e2..4c1f865 100644 --- a/sys/dev/drm/drm_irq.c +++ b/sys/dev/drm/drm_irq.c @@ -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; } |