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
timer: prefer TSC to HPET
[dpdk.git]
/
lib
/
librte_eal
/
common
/
include
/
eal_private.h
diff --git
a/lib/librte_eal/common/include/eal_private.h
b/lib/librte_eal/common/include/eal_private.h
index
314ee30
..
b9ae36b
100644
(file)
--- a/
lib/librte_eal/common/include/eal_private.h
+++ b/
lib/librte_eal/common/include/eal_private.h
@@
-35,6
+35,8
@@
#ifndef _EAL_PRIVATE_H_
#define _EAL_PRIVATE_H_
#ifndef _EAL_PRIVATE_H_
#define _EAL_PRIVATE_H_
+#include <stdio.h>
+
/**
* Initialize the memzone subsystem (private to eal).
*
/**
* Initialize the memzone subsystem (private to eal).
*
@@
-84,17
+86,18
@@
int rte_eal_cpu_init(void);
int rte_eal_memory_init(void);
/**
int rte_eal_memory_init(void);
/**
- * Configure
HPET
+ * Configure
timers
*
* This function is private to EAL.
*
* Mmap memory areas used by HPET (high precision event timer) that will
*
* This function is private to EAL.
*
* Mmap memory areas used by HPET (high precision event timer) that will
- * provide our time reference.
+ * provide our time reference, and configure the TSC frequency also for it
+ * to be used as a reference.
*
* @return
* 0 on success, negative on error
*/
*
* @return
* 0 on success, negative on error
*/
-int rte_eal_
hpet
_init(void);
+int rte_eal_
timer
_init(void);
/**
* Init early logs
/**
* Init early logs