drm: Only handle _DRM_VBLANK_NEXTONMISS once
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 24 Jun 2016 07:59:47 +0000 (16:59 +0900)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jul 2016 10:54:50 +0000 (12:54 +0200)
commit97ef1ae0e07d404bbebd46a75363528ff5c6e668
tree5081de150b56b163d9e75e0587b58aab95e7c1b1
parente6f15b763ab2bc47000ec302123e2fb3bf2ad7d4
drm: Only handle _DRM_VBLANK_NEXTONMISS once

Consolidate the _DRM_VBLANK_NEXTONMISS handling between drm_wait_vblank
and drm_queue_vblank_event.

This is a cleanup spotted while working on other changes.

(The way it was previously handled could also theoretically result in
drm_queue_vblank_event unnecessarily bumping vblwait->request.sequence,
if the vblank counter happened to increment between the
drm_vblank_count(_and_time) calls in each function, but that's unlikely)

Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1466755187-29418-1-git-send-email-michel@daenzer.net
drivers/gpu/drm/drm_irq.c