eal: optimize TSC routines when HPET is disabled
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Tue, 2 May 2017 05:19:51 +0000 (10:49 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 May 2017 13:38:42 +0000 (15:38 +0200)
commitb5dc89392f42b8bad06f3dbf767425bd1a00e59b
treeb762b049f766b93778a012322ac224fd2cb86726
parent4d8b986bfece500b343704dd1b508a98d9a96f3c
eal: optimize TSC routines when HPET is disabled

Since DPDK has only two timer sources,
Avoid &eal_timer_source memory read and followed
by the switch case statement when
RTE_LIBEAL_USE_HPET is not defined.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eal/common/include/generic/rte_cycles.h