drm/vblank: Remove DRM_VBLANKTIME_IN_VBLANK
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 22 Mar 2017 08:36:11 +0000 (09:36 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 25 Mar 2017 21:41:32 +0000 (22:41 +0100)
The core code doesn't care at all about this, it's entirely dead.

Cc: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170322083617.13361-11-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_irq.c
include/drm/drmP.h

index 53a526c7b24dcab0ad0a9e9f4302c9fc9803581f..4b0c7475ed1335bb6667cbec9de19d3da5548695 100644 (file)
@@ -810,14 +810,6 @@ int drm_calc_vbltimestamp_from_scanoutpos(struct drm_device *dev,
        /* Return upper bound of timestamp precision error. */
        *max_error = duration_ns;
 
-       /* Check if in vblank area:
-        * vpos is >=0 in video scanout area, but negative
-        * within vblank area, counting down the number of lines until
-        * start of scanout.
-        */
-       if (vbl_status & DRM_SCANOUTPOS_IN_VBLANK)
-               ret |= DRM_VBLANKTIME_IN_VBLANK;
-
        /* Convert scanout position into elapsed time at raw_time query
         * since start of scanout at first display scanline. delta_ns
         * can be negative if start of scanout hasn't happened yet.
index ec8d882b364cd89a24ab90f8f1e1a0cd20db5f34..3bfafcdb8710a996d38522bc9d90ff3f92c5404f 100644 (file)
@@ -322,7 +322,6 @@ struct pci_controller;
 /* Flags and return codes for get_vblank_timestamp() driver function. */
 #define DRM_CALLED_FROM_VBLIRQ 1
 #define DRM_VBLANKTIME_SCANOUTPOS_METHOD (1 << 0)
-#define DRM_VBLANKTIME_IN_VBLANK         (1 << 1)
 
 /* get_scanout_position() return flags */
 #define DRM_SCANOUTPOS_VALID        (1 << 0)