blob: 62e75475e57eaa804f209585673eb20e4b776437 [file] [log] [blame]
Marc Zyngier022c03a2012-01-11 17:25:17 +00001#ifndef __ASMARM_ARCH_TIMER_H
2#define __ASMARM_ARCH_TIMER_H
3
Will Deacon923df96b2012-07-06 15:46:45 +01004#include <asm/errno.h>
5
Marc Zyngier022c03a2012-01-11 17:25:17 +00006#ifdef CONFIG_ARM_ARCH_TIMER
Will Deacon923df96b2012-07-06 15:46:45 +01007#define ARCH_HAS_READ_CURRENT_TIMER
Marc Zyngier00752422012-01-19 13:53:50 +00008int arch_timer_of_register(void);
Marc Zyngierfb8a99f2012-04-27 13:18:42 +01009int arch_timer_sched_clock_init(void);
Marc Zyngier022c03a2012-01-11 17:25:17 +000010#else
Marc Zyngier00752422012-01-19 13:53:50 +000011static inline int arch_timer_of_register(void)
12{
13 return -ENXIO;
14}
15
Marc Zyngier3f61c802011-01-14 15:32:36 +000016static inline int arch_timer_sched_clock_init(void)
17{
18 return -ENXIO;
19}
Marc Zyngier022c03a2012-01-11 17:25:17 +000020#endif
21
22#endif