diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2016-06-07 10:07:55 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-06-13 12:34:06 -0400 |
commit | 93507d135bbfae34a626d0625aaae30536b84140 (patch) | |
tree | d64b35850ce2cb0179bee5734981b1357964a08d | |
parent | db749b7e3dabddab26717b5735e73482c3cfccff (diff) |
drm: remove legacy drm_arm_vblank_event()
We don't have any user of this function anymore, let's remove it.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465308482-15104-3-git-send-email-gustavo@padovan.org
-rw-r--r-- | drivers/gpu/drm/drm_irq.c | 39 | ||||
-rw-r--r-- | include/drm/drmP.h | 2 |
2 files changed, 8 insertions, 33 deletions
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 6eb17a24473d..38cc7824ac72 100644 --- a/drivers/gpu/drm/drm_irq.c +++ b/drivers/gpu/drm/drm_irq.c | |||
@@ -1001,34 +1001,6 @@ static void send_vblank_event(struct drm_device *dev, | |||
1001 | } | 1001 | } |
1002 | 1002 | ||
1003 | /** | 1003 | /** |
1004 | * drm_arm_vblank_event - arm vblank event after pageflip | ||
1005 | * @dev: DRM device | ||
1006 | * @pipe: CRTC index | ||
1007 | * @e: the event to prepare to send | ||
1008 | * | ||
1009 | * A lot of drivers need to generate vblank events for the very next vblank | ||
1010 | * interrupt. For example when the page flip interrupt happens when the page | ||
1011 | * flip gets armed, but not when it actually executes within the next vblank | ||
1012 | * period. This helper function implements exactly the required vblank arming | ||
1013 | * behaviour. | ||
1014 | * | ||
1015 | * Caller must hold event lock. Caller must also hold a vblank reference for | ||
1016 | * the event @e, which will be dropped when the next vblank arrives. | ||
1017 | * | ||
1018 | * This is the legacy version of drm_crtc_arm_vblank_event(). | ||
1019 | */ | ||
1020 | void drm_arm_vblank_event(struct drm_device *dev, unsigned int pipe, | ||
1021 | struct drm_pending_vblank_event *e) | ||
1022 | { | ||
1023 | assert_spin_locked(&dev->event_lock); | ||
1024 | |||
1025 | e->pipe = pipe; | ||
1026 | e->event.sequence = drm_vblank_count(dev, pipe); | ||
1027 | list_add_tail(&e->base.link, &dev->vblank_event_list); | ||
1028 | } | ||
1029 | EXPORT_SYMBOL(drm_arm_vblank_event); | ||
1030 | |||
1031 | /** | ||
1032 | * drm_crtc_arm_vblank_event - arm vblank event after pageflip | 1004 | * drm_crtc_arm_vblank_event - arm vblank event after pageflip |
1033 | * @crtc: the source CRTC of the vblank event | 1005 | * @crtc: the source CRTC of the vblank event |
1034 | * @e: the event to send | 1006 | * @e: the event to send |
@@ -1041,13 +1013,18 @@ EXPORT_SYMBOL(drm_arm_vblank_event); | |||
1041 | * | 1013 | * |
1042 | * Caller must hold event lock. Caller must also hold a vblank reference for | 1014 | * Caller must hold event lock. Caller must also hold a vblank reference for |
1043 | * the event @e, which will be dropped when the next vblank arrives. | 1015 | * the event @e, which will be dropped when the next vblank arrives. |
1044 | * | ||
1045 | * This is the native KMS version of drm_arm_vblank_event(). | ||
1046 | */ | 1016 | */ |
1047 | void drm_crtc_arm_vblank_event(struct drm_crtc *crtc, | 1017 | void drm_crtc_arm_vblank_event(struct drm_crtc *crtc, |
1048 | struct drm_pending_vblank_event *e) | 1018 | struct drm_pending_vblank_event *e) |
1049 | { | 1019 | { |
1050 | drm_arm_vblank_event(crtc->dev, drm_crtc_index(crtc), e); | 1020 | struct drm_device *dev = crtc->dev; |
1021 | unsigned int pipe = drm_crtc_index(crtc); | ||
1022 | |||
1023 | assert_spin_locked(&dev->event_lock); | ||
1024 | |||
1025 | e->pipe = pipe; | ||
1026 | e->event.sequence = drm_vblank_count(dev, pipe); | ||
1027 | list_add_tail(&e->base.link, &dev->vblank_event_list); | ||
1051 | } | 1028 | } |
1052 | EXPORT_SYMBOL(drm_crtc_arm_vblank_event); | 1029 | EXPORT_SYMBOL(drm_crtc_arm_vblank_event); |
1053 | 1030 | ||
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 1d24f087c164..9a76c7ce9736 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -971,8 +971,6 @@ extern u32 drm_crtc_vblank_count_and_time(struct drm_crtc *crtc, | |||
971 | struct timeval *vblanktime); | 971 | struct timeval *vblanktime); |
972 | extern void drm_crtc_send_vblank_event(struct drm_crtc *crtc, | 972 | extern void drm_crtc_send_vblank_event(struct drm_crtc *crtc, |
973 | struct drm_pending_vblank_event *e); | 973 | struct drm_pending_vblank_event *e); |
974 | extern void drm_arm_vblank_event(struct drm_device *dev, unsigned int pipe, | ||
975 | struct drm_pending_vblank_event *e); | ||
976 | extern void drm_crtc_arm_vblank_event(struct drm_crtc *crtc, | 974 | extern void drm_crtc_arm_vblank_event(struct drm_crtc *crtc, |
977 | struct drm_pending_vblank_event *e); | 975 | struct drm_pending_vblank_event *e); |
978 | extern bool drm_handle_vblank(struct drm_device *dev, unsigned int pipe); | 976 | extern bool drm_handle_vblank(struct drm_device *dev, unsigned int pipe); |