2012-01-11 10:25:17 -07:00
|
|
|
#ifndef __ASMARM_ARCH_TIMER_H
|
|
|
|
#define __ASMARM_ARCH_TIMER_H
|
|
|
|
|
2012-07-06 08:46:45 -06:00
|
|
|
#include <asm/errno.h>
|
|
|
|
|
2012-01-11 10:25:17 -07:00
|
|
|
#ifdef CONFIG_ARM_ARCH_TIMER
|
2012-07-06 08:46:45 -06:00
|
|
|
#define ARCH_HAS_READ_CURRENT_TIMER
|
2012-01-19 06:53:50 -07:00
|
|
|
int arch_timer_of_register(void);
|
2012-04-27 06:18:42 -06:00
|
|
|
int arch_timer_sched_clock_init(void);
|
2012-01-11 10:25:17 -07:00
|
|
|
#else
|
2012-01-19 06:53:50 -07:00
|
|
|
static inline int arch_timer_of_register(void)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
|
|
|
|
2011-01-14 08:32:36 -07:00
|
|
|
static inline int arch_timer_sched_clock_init(void)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
2012-01-11 10:25:17 -07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|