1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_POWERPC_TIMEX_H 3 #define _ASM_POWERPC_TIMEX_H 4 5 #ifdef __KERNEL__ 6 7 /* 8 * PowerPC architecture timex specifications 9 */ 10 11 #include <asm/cputable.h> 12 #include <asm/vdso/timebase.h> 13 14 typedef unsigned long cycles_t; 15 16 static inline cycles_t get_cycles(void) 17 { 18 return mftb(); 19 } 20 #define get_cycles get_cycles 21 22 #endif /* __KERNEL__ */ 23 #endif /* _ASM_POWERPC_TIMEX_H */ 24