16#include <rte_compat.h>
21#define US_PER_S 1000000
22#define NS_PER_S 1000000000
28extern enum timer_source eal_timer_source;
48#ifdef RTE_LIBEAL_USE_HPET
59rte_get_hpet_cycles(
void);
83int rte_eal_hpet_init(
int make_default);
96#ifdef RTE_LIBEAL_USE_HPET
97 switch(eal_timer_source) {
101#ifdef RTE_LIBEAL_USE_HPET
103 return rte_get_hpet_cycles();
104 default:
rte_panic(
"Invalid timer source specified\n");
115static inline uint64_t
118#ifdef RTE_LIBEAL_USE_HPET
119 switch(eal_timer_source) {
123#ifdef RTE_LIBEAL_USE_HPET
125 return rte_get_hpet_hz();
126 default:
rte_panic(
"Invalid timer source specified\n");
static uint64_t rte_get_timer_hz(void)
static uint64_t rte_get_timer_cycles(void)
static uint64_t rte_get_tsc_cycles(void)
void rte_delay_us_callback_register(void(*userfunc)(unsigned int))
__rte_experimental void rte_delay_us_sleep(unsigned int us)
void(* rte_delay_us)(unsigned int us)
void rte_delay_us_block(unsigned int us)
uint64_t rte_get_tsc_hz(void)
static void rte_delay_ms(unsigned ms)