2012-01-12 01:25:17 +08:00
|
|
|
#ifndef __ASMARM_ARCH_TIMER_H
|
|
|
|
#define __ASMARM_ARCH_TIMER_H
|
|
|
|
|
2012-07-06 22:46:45 +08:00
|
|
|
#include <asm/errno.h>
|
2012-09-08 01:09:58 +08:00
|
|
|
#include <linux/clocksource.h>
|
2012-07-06 22:46:45 +08:00
|
|
|
|
2012-01-12 01:25:17 +08:00
|
|
|
#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-09-08 01:09:58 +08:00
|
|
|
struct timecounter *arch_timer_get_timecounter(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-09-08 01:09:58 +08:00
|
|
|
|
|
|
|
static inline struct timecounter *arch_timer_get_timecounter(void)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
2012-01-12 01:25:17 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|