24 #define US_PER_S 1000000 25 #define NS_PER_S 1000000000 31 extern enum timer_source eal_timer_source;
48 static inline uint64_t
51 #ifdef RTE_LIBEAL_USE_HPET 62 rte_get_hpet_cycles(
void);
71 rte_get_hpet_hz(
void);
86 int rte_eal_hpet_init(
int make_default);
96 static inline uint64_t
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");
118 static 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");
void rte_delay_us_block(unsigned int us)
void rte_delay_us_callback_register(void(*userfunc)(unsigned int))
static void rte_delay_ms(unsigned ms)
static uint64_t rte_get_timer_hz(void)
void(* rte_delay_us)(unsigned int us)
static uint64_t rte_get_tsc_cycles(void)
void rte_delay_us_sleep(unsigned int us)
uint64_t rte_get_tsc_hz(void)
static uint64_t rte_get_timer_cycles(void)