20#define US_PER_S 1000000
21#define NS_PER_S 1000000000
27extern enum timer_source eal_timer_source;
47#ifdef RTE_LIBEAL_USE_HPET
58rte_get_hpet_cycles(
void);
82int rte_eal_hpet_init(
int make_default);
95#ifdef RTE_LIBEAL_USE_HPET
96 switch(eal_timer_source) {
100#ifdef RTE_LIBEAL_USE_HPET
102 return rte_get_hpet_cycles();
103 default:
rte_panic(
"Invalid timer source specified\n");
114static inline uint64_t
117#ifdef RTE_LIBEAL_USE_HPET
118 switch(eal_timer_source) {
122#ifdef RTE_LIBEAL_USE_HPET
124 return rte_get_hpet_hz();
125 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))
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)