[dpdk-dev,1/4] tile: avoid use of non-upstreamed <arch/cycle.h>
Checks
Commit Message
It's trivial to directly invoke a read of the special-purpose
register that holds the clock cycle counter, so just do that.
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
---
lib/librte_eal/common/include/arch/tile/rte_cycles.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -37,7 +37,7 @@
extern "C" {
#endif
-#include <arch/cycle.h>
+#include <arch/spr_def.h>
#include "generic/rte_cycles.h"
@@ -50,7 +50,7 @@ extern "C" {
static inline uint64_t
rte_rdtsc(void)
{
- return get_cycle_count();
+ return __insn_mfspr(SPR_CYCLE);
}
static inline uint64_t