]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/gpu/drm/drm_irq.c
drm: Stop using drm_vblank_count() as the hw frame counter
[linux-beck.git] / drivers / gpu / drm / drm_irq.c
index 0659d9956b7c676b03a767f7ed68285140ec4aa4..7bdf247b9681b59421b73cce7bb6c5e015073928 100644 (file)
@@ -1798,3 +1798,20 @@ bool drm_crtc_handle_vblank(struct drm_crtc *crtc)
        return drm_handle_vblank(crtc->dev, drm_crtc_index(crtc));
 }
 EXPORT_SYMBOL(drm_crtc_handle_vblank);
+
+/**
+ * drm_vblank_no_hw_counter - "No hw counter" implementation of .get_vblank_counter()
+ * @dev: DRM device
+ * @pipe: CRTC for which to read the counter
+ *
+ * Drivers can plug this into the .get_vblank_counter() function if
+ * there is no useable hardware frame counter available.
+ *
+ * Returns:
+ * 0
+ */
+u32 drm_vblank_no_hw_counter(struct drm_device *dev, unsigned int pipe)
+{
+       return 0;
+}
+EXPORT_SYMBOL(drm_vblank_no_hw_counter);