16 #include <rte_compat.h> 21 #define US_PER_S 1000000 22 #define NS_PER_S 1000000000 28 extern enum timer_source eal_timer_source;
45 static inline uint64_t
48 #ifdef RTE_LIBEAL_USE_HPET 59 rte_get_hpet_cycles(
void);
68 rte_get_hpet_hz(
void);
83 int rte_eal_hpet_init(
int make_default);
93 static inline uint64_t
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");
115 static 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");
168 void __rte_experimental
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_experimental rte_delay_us_sleep(unsigned int us)
uint64_t rte_get_tsc_hz(void)
static uint64_t rte_get_timer_cycles(void)