20 #define US_PER_S 1000000 21 #define NS_PER_S 1000000000 27 extern enum timer_source eal_timer_source;
44 static inline uint64_t
47 #ifdef RTE_LIBEAL_USE_HPET 58 rte_get_hpet_cycles(
void);
67 rte_get_hpet_hz(
void);
82 int rte_eal_hpet_init(
int make_default);
92 static inline uint64_t
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");
114 static 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");
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)