drm/irq: Add drm_crtc_vblank_count_and_time()
authorThierry Reding <treding@nvidia.com>
Thu, 24 Sep 2015 16:35:36 +0000 (18:35 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Sep 2015 18:27:17 +0000 (20:27 +0200)
commitcf6483050e9bf13979415d9fd388554d8c8f3477
tree45fb6b49759d63d97e360ce6922101aa6765c9dd
parent2b193f023dc8f43b005bc7844b07e437a4e418db
drm/irq: Add drm_crtc_vblank_count_and_time()

This function is the KMS native variant of drm_vblank_count_and_time().
It takes a struct drm_crtc * instead of a struct drm_device * and an
index of the CRTC.

Eventually the goal is to access vblank data through the CRTC only so
that the per-CRTC data can be moved to struct drm_crtc.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_irq.c
include/drm/drmP.h