]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_eal/common/eal_private.h
timer: honor arch-specific TSC frequency query
[dpdk.git] / lib / librte_eal / common / eal_private.h
index 597d82e4454f1480dd44f3ff0270d006cf65a8af..6e0f85def8d04c6d30d384c708c5e22bdfb958d1 100644 (file)
@@ -314,6 +314,17 @@ void set_tsc_freq(void);
  */
 uint64_t get_tsc_freq(void);
 
+/**
+ * Get TSC frequency if the architecture supports.
+ *
+ * This function is private to the EAL.
+ *
+ * @return
+ *   The number of TSC cycles in one second.
+ *   Returns zero if the architecture support is not available.
+ */
+uint64_t get_tsc_freq_arch(void);
+
 /**
  * Prepare physical memory mapping
  * i.e. hugepages on Linux and