[PATCH libdrm v3 4/4] etnaviv: drop get_abs_timeout(..)

Christian Gmeiner christian.gmeiner at gmail.com
Wed Nov 23 07:26:21 UTC 2016


It has no callers so drop it.

Signed-off-by: Christian Gmeiner <christian.gmeiner at gmail.com>
---
 etnaviv/etnaviv_priv.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/etnaviv/etnaviv_priv.h b/etnaviv/etnaviv_priv.h
index 30cc1bd..667bf23 100644
--- a/etnaviv/etnaviv_priv.h
+++ b/etnaviv/etnaviv_priv.h
@@ -189,15 +189,6 @@ struct etna_cmd_stream_priv {
 
 #define VOID2U64(x) ((uint64_t)(unsigned long)(x))
 
-static inline void get_abs_timeout(struct drm_etnaviv_timespec *tv, uint32_t ms)
-{
-	struct timespec t;
-	uint32_t s = ms / 1000;
-	clock_gettime(CLOCK_MONOTONIC, &t);
-	tv->tv_sec = t.tv_sec + s;
-	tv->tv_nsec = t.tv_nsec + ((ms - (s * 1000)) * 1000000);
-}
-
 static inline void get_abs_timeout_ns(struct drm_etnaviv_timespec *tv, uint64_t ns)
 {
 	struct timespec t;
-- 
2.7.4



More information about the dri-devel mailing list