mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 01:40:53 +07:00
drm: export drm_timeout_abs_to_jiffies
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
This commit is contained in:
parent
e2771deb5d
commit
877b372996
@ -731,7 +731,7 @@ static signed long drm_syncobj_array_wait_timeout(struct drm_syncobj **syncobjs,
|
||||
*
|
||||
* 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,
|
||||
|
@ -10,6 +10,10 @@
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user