[dpdk-dev] [PATCH 0/5] improve tsc frequency calibration
Jerin Jacob
jerin.jacob at caviumnetworks.com
Sun Aug 13 09:03:45 CEST 2017
Some architecture like armv8 provides an architecture specific function
to get the rdtsc frequency. The existing rdtsc calibration scheme uses
OS serivce like sleep(1) to calibrate the frequency which may not
produce the accurate result. Introducing an architecture specific hook
to get the rdtsc frequency if architecture provides it. If not, use the
exiting the calibrate scheme to get the rdtsc frequency.
Jerin Jacob (5):
eal/x86: define architecture specific rdtsc hz
eal/ppc64: define architecture specific rdtsc hz
eal/armv7: define architecture specific rdtsc hz
eal/armv8: define architecture specific rdtsc hz
eal/timer: honor architecture specific rdtsc hz function
lib/librte_eal/common/eal_common_timer.c | 5 +++-
.../common/include/arch/arm/rte_cycles_32.h | 13 ++++++++++
.../common/include/arch/arm/rte_cycles_64.h | 30 ++++++++++++++++++++++
.../common/include/arch/ppc_64/rte_cycles.h | 13 ++++++++++
.../common/include/arch/x86/rte_cycles.h | 13 ++++++++++
5 files changed, 73 insertions(+), 1 deletion(-)
--
2.14.0
More information about the dev
mailing list