summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2009-06-25 15:47:32 +0000
committerrnoland <rnoland@FreeBSD.org>2009-06-25 15:47:32 +0000
commite96ab5a0ecb1b0ab6ce67c702d929064312609b1 (patch)
tree3f999a380fa496c6e7bedf5320c379bab59f9fb6 /sys/dev/drm
parentc191a3bf7a1a95d73234b1cc468e3f239be5785c (diff)
downloadFreeBSD-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
Diffstat (limited to 'sys/dev/drm')
-rw-r--r--sys/dev/drm/drm_irq.c4
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;
}
OpenPOWER on IntegriCloud