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 | |
Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame] | 4 | #ifdef CONFIG_ARM_ARCH_TIMER |
Marc Zyngier | 0075242 | 2012-01-19 13:53:50 +0000 | [diff] [blame] | 5 | int arch_timer_of_register(void); |
Marc Zyngier | fb8a99f | 2012-04-27 13:18:42 +0100 | [diff] [blame^] | 6 | int arch_timer_sched_clock_init(void); |
Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame] | 7 | #else |
Marc Zyngier | 0075242 | 2012-01-19 13:53:50 +0000 | [diff] [blame] | 8 | static inline int arch_timer_of_register(void) |
| 9 | { |
| 10 | return -ENXIO; |
| 11 | } |
| 12 | |
Marc Zyngier | 3f61c80 | 2011-01-14 15:32:36 +0000 | [diff] [blame] | 13 | static inline int arch_timer_sched_clock_init(void) |
| 14 | { |
| 15 | return -ENXIO; |
| 16 | } |
Marc Zyngier | 022c03a | 2012-01-11 17:25:17 +0000 | [diff] [blame] | 17 | #endif |
| 18 | |
| 19 | #endif |