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