1 #ifndef __ASMARM_ARCH_TIMER_H 2 #define __ASMARM_ARCH_TIMER_H 3 4 #include <asm/errno.h> 5 6 #ifdef CONFIG_ARM_ARCH_TIMER 7 #define ARCH_HAS_READ_CURRENT_TIMER 8 int arch_timer_of_register(void); 9 int arch_timer_sched_clock_init(void); 10 #else 11 static inline int arch_timer_of_register(void) 12 { 13 return -ENXIO; 14 } 15 16 static inline int arch_timer_sched_clock_init(void) 17 { 18 return -ENXIO; 19 } 20 #endif 21 22 #endif 23