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
This commit is contained in:
parent
a429bdf087
commit
2642e635f2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user