Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame] | 1 | #ifndef __ASMARM_ARCH_TIMER_H |
2 | #define __ASMARM_ARCH_TIMER_H | ||||
3 | |||||
Will Deacon | 923df96b | 2012-07-06 15:46:45 +0100 | [diff] [blame] | 4 | #include <asm/errno.h> |
5 | |||||
Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame] | 6 | #ifdef CONFIG_ARM_ARCH_TIMER |
Will Deacon | 923df96b | 2012-07-06 15:46:45 +0100 | [diff] [blame] | 7 | #define ARCH_HAS_READ_CURRENT_TIMER |
Marc Zyngier | 0075242 | 2012-01-19 13:53:50 +0000 | [diff] [blame] | 8 | int arch_timer_of_register(void); |
Marc Zyngier | fb8a99f | 2012-04-27 13:18:42 +0100 | [diff] [blame] | 9 | int arch_timer_sched_clock_init(void); |
Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame] | 10 | #else |
Marc Zyngier | 0075242 | 2012-01-19 13:53:50 +0000 | [diff] [blame] | 11 | static inline int arch_timer_of_register(void) |
12 | { | ||||
13 | return -ENXIO; | ||||
14 | } | ||||
15 | |||||
Marc Zyngier | 3f61c80 | 2011-01-14 15:32:36 +0000 | [diff] [blame] | 16 | static inline int arch_timer_sched_clock_init(void) |
17 | { | ||||
18 | return -ENXIO; | ||||
19 | } | ||||
Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame] | 20 | #endif |
21 | |||||
22 | #endif |