[dpdk-dev,v2,3/5] eal/armv7: define architecture specific rdtsc hz
Checks
Commit Message
From: Jerin Jacob <jerin.jacob@caviumnetworks.com>
CC: Jan Viktorin <viktorin@rehivetech.com>
CC: Jianbo Liu <jianbo.liu@linaro.org>
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
---
lib/librte_eal/common/include/arch/arm/rte_cycles_32.h | 13 +++++++++++++
1 file changed, 13 insertions(+)
@@ -104,6 +104,19 @@
#endif /* RTE_ARM_EAL_RDTSC_USE_PMU */
+/**
+ * Get the number of rdtsc cycles in one second if the architecture supports.
+ *
+ * @return
+ * The number of rdtsc cycles in one second. Return zero if the architecture
+ * support is not available.
+ */
+static inline uint64_t
+rte_rdtsc_arch_hz(void)
+{
+ return 0;
+}
+
static inline uint64_t
rte_rdtsc_precise(void)
{