aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalakrishna Garapati <balakrishna.garapati@linaro.org>2017-07-12 17:31:25 +0200
committerBalakrishna Garapati <balakrishna.garapati@linaro.org>2017-07-26 08:42:28 +0200
commit2f144ba129628bd0e38b9804f9f7326380d70b2b (patch)
tree3098d0f0e8c5cbef9fa3b874e56d0c2ff7a02726
parentdf1b969c806659be3c37ee16d58325f54ee8c6f7 (diff)
downloadodp-dpdk-2f144ba129628bd0e38b9804f9f7326380d70b2b.tar.gz
linux-dpdk:porting "time: remove odp_time_to_u64 from API"
Signed-off-by: Balakrishna Garapati <balakrishna.garapati@linaro.org> Reviewed-and-tested-by: Matias Elo <matias.elo@nokia.com>
-rw-r--r--platform/linux-dpdk/odp_time.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/platform/linux-dpdk/odp_time.c b/platform/linux-dpdk/odp_time.c
index c1ad973..9ca3109 100644
--- a/platform/linux-dpdk/odp_time.c
+++ b/platform/linux-dpdk/odp_time.c
@@ -240,31 +240,11 @@ void odp_time_wait_until(odp_time_t time)
return time_wait_until(time);
}
-static uint64_t time_to_u64(odp_time_t time)
-{
- int ret;
- struct timespec tres;
- uint64_t resolution;
-
- ret = clock_getres(CLOCK_MONOTONIC_RAW, &tres);
- if (odp_unlikely(ret != 0))
- ODP_ABORT("clock_getres failed\n");
-
- resolution = (uint64_t)tres.tv_nsec;
-
- return time_handler.time_to_ns(time) / resolution;
-}
-
static uint64_t time_to_u64_dpdk(odp_time_t time)
{
return time.tv_sec;
}
-uint64_t odp_time_to_u64(odp_time_t time)
-{
- return time_handler.time_to_u64(time);
-}
-
static odp_bool_t is_invariant_tsc_supported(void)
{
FILE *file;