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 <sys/platform/ppc.h>
15 #include "generic/rte_cycles.h"
17 #include <rte_byteorder.h>
18 #include <rte_common.h>
21 * Read the time base register.
24 * The time base for this lcore.
26 static inline uint64_t
29 return __ppc_get_timebase();
32 static inline uint64_t
33 rte_rdtsc_precise(void)
39 static inline uint64_t
40 rte_get_tsc_cycles(void) { return rte_rdtsc(); }
46 #endif /* _RTE_CYCLES_PPC_64_H_ */