arch_timer.h 384 字节
Newer Older
1 2 3
#ifndef __ASMARM_ARCH_TIMER_H
#define __ASMARM_ARCH_TIMER_H

4 5
#include <asm/errno.h>

6
#ifdef CONFIG_ARM_ARCH_TIMER
7
#define ARCH_HAS_READ_CURRENT_TIMER
8
int arch_timer_of_register(void);
9
int arch_timer_sched_clock_init(void);
10
#else
11 12 13 14 15
static inline int arch_timer_of_register(void)
{
	return -ENXIO;
}

16 17 18 19
static inline int arch_timer_sched_clock_init(void)
{
	return -ENXIO;
}
20 21 22
#endif

#endif