24#define US_PER_S 1000000
25#define NS_PER_S 1000000000
31extern enum timer_source eal_timer_source;
51#ifdef RTE_LIBEAL_USE_HPET
62rte_get_hpet_cycles(
void);
86int rte_eal_hpet_init(
int make_default);
99#ifdef RTE_LIBEAL_USE_HPET
100 switch(eal_timer_source) {
104#ifdef RTE_LIBEAL_USE_HPET
106 return rte_get_hpet_cycles();
107 default:
rte_panic(
"Invalid timer source specified\n");
118static inline uint64_t
121#ifdef RTE_LIBEAL_USE_HPET
122 switch(eal_timer_source) {
126#ifdef RTE_LIBEAL_USE_HPET
128 return rte_get_hpet_hz();
129 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)