1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_TIMEX_H
3 #define _ASM_POWERPC_TIMEX_H
8 * PowerPC architecture timex specifications
11 #include <asm/cputable.h>
14 #define CLOCK_TICK_RATE 1024000 /* Underlying HZ */
16 typedef unsigned long cycles_t
;
18 static inline cycles_t
get_cycles(void)
26 * For the "cycle" counter we use the timebase lower half.
27 * Currently only used on SMP.
39 ".section __ftr_fixup,\"a\"\n"
49 : "=r" (ret
) : "i" (CPU_FTR_601
), "i" (SPRN_TBRL
));
54 #endif /* __KERNEL__ */
55 #endif /* _ASM_POWERPC_TIMEX_H */