2012-01-12 01:25:17 +08:00
|
|
|
#ifndef __ASMARM_ARCH_TIMER_H
|
|
|
|
#define __ASMARM_ARCH_TIMER_H
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARM_ARCH_TIMER
|
2012-01-19 21:53:50 +08:00
|
|
|
int arch_timer_of_register(void);
|
2012-04-27 20:18:42 +08:00
|
|
|
int arch_timer_sched_clock_init(void);
|
2012-01-12 01:25:17 +08:00
|
|
|
#else
|
2012-01-19 21:53:50 +08:00
|
|
|
static inline int arch_timer_of_register(void)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
|
|
|
|
2011-01-14 23:32:36 +08:00
|
|
|
static inline int arch_timer_sched_clock_init(void)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
2012-01-12 01:25:17 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|