1 #ifndef _ASM_POWERPC_TIMEX_H
2 #define _ASM_POWERPC_TIMEX_H
7 * PowerPC architecture timex specifications
10 #include <asm/cputable.h>
12 #define CLOCK_TICK_RATE 1024000 /* Underlying HZ */
14 typedef unsigned long cycles_t;
16 static inline cycles_t get_cycles(void)
22 __asm__ __volatile__("mftb %0" : "=r" (ret) : );
26 * For the "cycle" counter we use the timebase lower half.
27 * Currently only used on SMP.
35 ".section __ftr_fixup,\"a\"\n"
41 : "=r" (ret) : "i" (CPU_FTR_601));
47 #endif /* __KERNEL__ */
48 #endif /* _ASM_POWERPC_TIMEX_H */