git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
eal/linux: fix build with hpet
[dpdk.git]
/
lib
/
librte_eal
/
linuxapp
/
eal
/
eal_timer.c
diff --git
a/lib/librte_eal/linuxapp/eal/eal_timer.c
b/lib/librte_eal/linuxapp/eal/eal_timer.c
index
9ceff33
..
f2abb7b
100644
(file)
--- a/
lib/librte_eal/linuxapp/eal/eal_timer.c
+++ b/
lib/librte_eal/linuxapp/eal/eal_timer.c
@@
-47,6
+47,7
@@
#include <rte_common.h>
#include <rte_log.h>
#include <rte_cycles.h>
#include <rte_common.h>
#include <rte_log.h>
#include <rte_cycles.h>
+#include <rte_lcore.h>
#include <rte_memory.h>
#include <rte_memzone.h>
#include <rte_eal.h>
#include <rte_memory.h>
#include <rte_memzone.h>
#include <rte_eal.h>
@@
-271,7
+272,7
@@
get_tsc_freq(void)
#ifdef CLOCK_MONOTONIC_RAW
#define NS_PER_SEC 1E9
#ifdef CLOCK_MONOTONIC_RAW
#define NS_PER_SEC 1E9
- struct timespec sleeptime = {.tv_nsec =
5E8 }; /* 1/2
second */
+ struct timespec sleeptime = {.tv_nsec =
NS_PER_SEC / 10 }; /* 1/10
second */
struct timespec t_start, t_end;
uint64_t tsc_hz;
struct timespec t_start, t_end;
uint64_t tsc_hz;