/* drm_vblank_pre_modeset - account for vblanks across mode sets @dev: DRM device @crtc: CRTC in question  */
void drm_vblank_pre_modeset(struct drm_device *dev, int crtc)
/* drm_vblank_pre_modeset - account for vblanks across mode sets @dev: DRM device @crtc: CRTC in question  */
void drm_vblank_pre_modeset(struct drm_device *dev, int crtc)
{
	if (!dev->num_crtcs)
		return;
	if (!dev->vblank_inmodeset[crtc]) {
		dev->vblank_inmodeset[crtc] = 0x1;
		if (drm_vblank_get(dev, crtc) == 0)
			dev->vblank_inmodeset[crtc] |= 0x2;
	}
}