1 #ifndef _ASM_POWERPC_TIMEX_H
2 #define _ASM_POWERPC_TIMEX_H
7 * PowerPC architecture timex specifications
10 #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)
25 * For the "cycle" counter we use the timebase lower half.
26 * Currently only used on SMP.
38 ".section __ftr_fixup,\"a\"\n"
49 : "=r" (ret
) : "i" (CPU_FTR_601
));
51 : "=r" (ret
) : "i" (CPU_FTR_601
), "i" (SPRN_TBRL
));
57 #endif /* __KERNEL__ */
58 #endif /* _ASM_POWERPC_TIMEX_H */