2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (C) IBM Corporation 2014.
6 #ifndef _RTE_CYCLES_PPC_64_H_
7 #define _RTE_CYCLES_PPC_64_H_
13 #include "generic/rte_cycles.h"
15 #include <rte_byteorder.h>
16 #include <rte_common.h>
19 * Read the time base register.
22 * The time base for this lcore.
24 static inline uint64_t
31 #if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
47 "cmpw %[tmp],%[hi32]\n"
49 : [hi32] "=r"(tsc.hi_32), [lo32] "=r"(tsc.lo_32),
55 static inline uint64_t
56 rte_rdtsc_precise(void)
62 static inline uint64_t
63 rte_get_tsc_cycles(void) { return rte_rdtsc(); }
69 #endif /* _RTE_CYCLES_PPC_64_H_ */