]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm: export drm_timeout_abs_to_jiffies
authorQiang Yu <yuq825@gmail.com>
Mon, 25 Feb 2019 14:07:16 +0000 (22:07 +0800)
committerRob Herring <robh@kernel.org>
Thu, 7 Mar 2019 18:00:30 +0000 (12:00 -0600)
For other driver like lima usage.

Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190225140717.20586-2-yuq825@gmail.com
drivers/gpu/drm/drm_syncobj.c
include/drm/drm_utils.h

index e19525af0ccee11e39277c589beaeb8811d8c0b2..5329e66598c63dda8d4cccb5163064438ae9af25 100644 (file)
@@ -731,7 +731,7 @@ cleanup_entries:
  *
  * Calculate the timeout in jiffies from an absolute time in sec/nsec.
  */
-static signed long drm_timeout_abs_to_jiffies(int64_t timeout_nsec)
+signed long drm_timeout_abs_to_jiffies(int64_t timeout_nsec)
 {
        ktime_t abs_timeout, now;
        u64 timeout_ns, timeout_jiffies64;
@@ -755,6 +755,7 @@ static signed long drm_timeout_abs_to_jiffies(int64_t timeout_nsec)
 
        return timeout_jiffies64 + 1;
 }
+EXPORT_SYMBOL(drm_timeout_abs_to_jiffies);
 
 static int drm_syncobj_array_wait(struct drm_device *dev,
                                  struct drm_file *file_private,
index a803988d85792512ce82b93ac3f31fb173acfcde..70775748d243b0fd6e13a088d05c45f31cf34a4a 100644 (file)
 #ifndef __DRM_UTILS_H__
 #define __DRM_UTILS_H__
 
+#include <linux/types.h>
+
 int drm_get_panel_orientation_quirk(int width, int height);
 
+signed long drm_timeout_abs_to_jiffies(int64_t timeout_nsec);
+
 #endif