--- zzzz-none-000/linux-2.6.39.4/arch/arm/include/asm/timex.h 2011-08-03 19:43:28.000000000 +0000 +++ puma6-arm-6490-729/linux-2.6.39.4/arch/arm/include/asm/timex.h 2021-11-10 13:23:09.000000000 +0000 @@ -16,9 +16,19 @@ typedef unsigned long cycles_t; +#if defined(CONFIG_ARCH_PUMA5) || defined(CONFIG_MACH_PUMA5) || defined(CONFIG_MACH_PUMA6) + +extern cycles_t get_puma_cpu_cycles(void); + +static inline cycles_t get_cycles(void) { + return get_puma_cpu_cycles(); +} +#else + static inline cycles_t get_cycles (void) { return 0; } +#endif #endif