| #ifndef _ASM_POWERPC_TIMEX_H |
| #define _ASM_POWERPC_TIMEX_H |
| * PowerPC architecture timex specifications |
| #include <linux/config.h> |
| #include <asm/cputable.h> |
| #define CLOCK_TICK_RATE 1024000 /* Underlying HZ */ |
| typedef unsigned long cycles_t; |
| static inline cycles_t get_cycles(void) |
| __asm__ __volatile__("mftb %0" : "=r" (ret) : ); |
| * For the "cycle" counter we use the timebase lower half. |
| * Currently only used on SMP. |
| ".section __ftr_fixup,\"a\"\n" |
| : "=r" (ret) : "i" (CPU_FTR_601)); |
| #endif /* _ASM_POWERPC_TIMEX_H */ |