1022c03a2SMarc Zyngier #ifndef __ASMARM_ARCH_TIMER_H 2022c03a2SMarc Zyngier #define __ASMARM_ARCH_TIMER_H 3022c03a2SMarc Zyngier 4*923df96bSWill Deacon #include <asm/errno.h> 5*923df96bSWill Deacon 6022c03a2SMarc Zyngier #ifdef CONFIG_ARM_ARCH_TIMER 7*923df96bSWill Deacon #define ARCH_HAS_READ_CURRENT_TIMER 80075242bSMarc Zyngier int arch_timer_of_register(void); 9fb8a99f9SMarc Zyngier int arch_timer_sched_clock_init(void); 10022c03a2SMarc Zyngier #else 110075242bSMarc Zyngier static inline int arch_timer_of_register(void) 120075242bSMarc Zyngier { 130075242bSMarc Zyngier return -ENXIO; 140075242bSMarc Zyngier } 150075242bSMarc Zyngier 163f61c80eSMarc Zyngier static inline int arch_timer_sched_clock_init(void) 173f61c80eSMarc Zyngier { 183f61c80eSMarc Zyngier return -ENXIO; 193f61c80eSMarc Zyngier } 20022c03a2SMarc Zyngier #endif 21022c03a2SMarc Zyngier 22022c03a2SMarc Zyngier #endif 23