summaryrefslogtreecommitdiff
path: root/include/drm/drm_vblank.h
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2021-09-03 21:47:53 +0300
committerRob Clark <robdclark@chromium.org>2023-03-29 00:52:59 +0300
commitb2c077d001b612b1f34f7e528b2dc6072bd6794e (patch)
tree93342f345a18af3c770a737f289686fdd946615e /include/drm/drm_vblank.h
parentf3823da7e4ba7d4781375c2bb786a8a78efc6591 (diff)
downloadlinux-b2c077d001b612b1f34f7e528b2dc6072bd6794e.tar.xz
drm/vblank: Add helper to get next vblank time
Will be used in the next commit to set a deadline on fences that an atomic update is waiting on. v2: Calculate time at *start* of vblank period, not end v3: Fix kbuild complaints Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Diffstat (limited to 'include/drm/drm_vblank.h')
-rw-r--r--include/drm/drm_vblank.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_vblank.h b/include/drm/drm_vblank.h
index 733a3e2d1d10..7f3957943dd1 100644
--- a/include/drm/drm_vblank.h
+++ b/include/drm/drm_vblank.h
@@ -230,6 +230,7 @@ bool drm_dev_has_vblank(const struct drm_device *dev);
u64 drm_crtc_vblank_count(struct drm_crtc *crtc);
u64 drm_crtc_vblank_count_and_time(struct drm_crtc *crtc,
ktime_t *vblanktime);
+int drm_crtc_next_vblank_start(struct drm_crtc *crtc, ktime_t *vblanktime);
void drm_crtc_send_vblank_event(struct drm_crtc *crtc,
struct drm_pending_vblank_event *e);
void drm_crtc_arm_vblank_event(struct drm_crtc *crtc,