xref: /linux/arch/arm/include/asm/arch_timer.h (revision ef8c029fa793423439e67ef0416b220d3fa3321a)
1 #ifndef __ASMARM_ARCH_TIMER_H
2 #define __ASMARM_ARCH_TIMER_H
3 
4 #include <asm/errno.h>
5 #include <linux/clocksource.h>
6 
7 #ifdef CONFIG_ARM_ARCH_TIMER
8 int arch_timer_of_register(void);
9 int arch_timer_sched_clock_init(void);
10 struct timecounter *arch_timer_get_timecounter(void);
11 #else
12 static inline int arch_timer_of_register(void)
13 {
14 	return -ENXIO;
15 }
16 
17 static inline int arch_timer_sched_clock_init(void)
18 {
19 	return -ENXIO;
20 }
21 
22 static inline struct timecounter *arch_timer_get_timecounter(void)
23 {
24 	return NULL;
25 }
26 #endif
27 
28 #endif
29