Skip to content

Commit f19aee7

Browse files
committed
drm/vblank: Remove DRM_VBLANKTIME_IN_VBLANK
The core code doesn't care at all about this, it's entirely dead. Cc: Mario Kleiner <[email protected]> Reviewed-by: Ville Syrjälä <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f217f55 commit f19aee7

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

drivers/gpu/drm/drm_irq.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -810,14 +810,6 @@ int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
810810
/* Return upper bound of timestamp precision error. */
811811
*max_error = duration_ns;
812812

813-
/* Check if in vblank area:
814-
* vpos is >=0 in video scanout area, but negative
815-
* within vblank area, counting down the number of lines until
816-
* start of scanout.
817-
*/
818-
if (vbl_status & DRM_SCANOUTPOS_IN_VBLANK)
819-
ret |= DRM_VBLANKTIME_IN_VBLANK;
820-
821813
/* Convert scanout position into elapsed time at raw_time query
822814
* since start of scanout at first display scanline. delta_ns
823815
* can be negative if start of scanout hasn't happened yet.

include/drm/drmP.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ struct pci_controller;
322322
/* Flags and return codes for get_vblank_timestamp() driver function. */
323323
#define DRM_CALLED_FROM_VBLIRQ 1
324324
#define DRM_VBLANKTIME_SCANOUTPOS_METHOD (1 << 0)
325-
#define DRM_VBLANKTIME_IN_VBLANK (1 << 1)
326325

327326
/* get_scanout_position() return flags */
328327
#define DRM_SCANOUTPOS_VALID (1 << 0)

0 commit comments

Comments
 (0)