blob: ed2e95d46e29808ae1ef25d338335babcc671dc2 [file] [log] [blame]
Marc Zyngier022c03a2012-01-11 17:25:17 +00001#ifndef __ASMARM_ARCH_TIMER_H
2#define __ASMARM_ARCH_TIMER_H
3
Marc Zyngier022c03a2012-01-11 17:25:17 +00004#ifdef CONFIG_ARM_ARCH_TIMER
Marc Zyngier00752422012-01-19 13:53:50 +00005int arch_timer_of_register(void);
Marc Zyngierfb8a99f2012-04-27 13:18:42 +01006int arch_timer_sched_clock_init(void);
Marc Zyngier022c03a2012-01-11 17:25:17 +00007#else
Marc Zyngier00752422012-01-19 13:53:50 +00008static inline int arch_timer_of_register(void)
9{
10 return -ENXIO;
11}
12
Marc Zyngier3f61c802011-01-14 15:32:36 +000013static inline int arch_timer_sched_clock_init(void)
14{
15 return -ENXIO;
16}
Marc Zyngier022c03a2012-01-11 17:25:17 +000017#endif
18
19#endif