1 #ifndef _ASM_POWERPC_TIMEX_H
2 #define _ASM_POWERPC_TIMEX_H
7 * PowerPC architecture timex specifications
10 #include <linux/config.h>
11 #include <asm/cputable.h>
13 #define CLOCK_TICK_RATE 1024000 /* Underlying HZ */
15 typedef unsigned long cycles_t
;
17 static inline cycles_t
get_cycles(void)
23 __asm__
__volatile__("mftb %0" : "=r" (ret
) : );
27 * For the "cycle" counter we use the timebase lower half.
28 * Currently only used on SMP.
36 ".section __ftr_fixup,\"a\"\n"
42 : "=r" (ret
) : "i" (CPU_FTR_601
));
48 #endif /* __KERNEL__ */
49 #endif /* _ASM_POWERPC_TIMEX_H */