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

4
#include <asm/errno.h>
5
#include <linux/clocksource.h>
6

7
#ifdef CONFIG_ARM_ARCH_TIMER
8
int arch_timer_of_register(void);
9
int arch_timer_sched_clock_init(void);
10
struct timecounter *arch_timer_get_timecounter(void);
11
#else
12 13 14 15 16
static inline int arch_timer_of_register(void)
{
	return -ENXIO;
}

17 18 19 20
static inline int arch_timer_sched_clock_init(void)
{
	return -ENXIO;
}
21 22 23 24 25

static inline struct timecounter *arch_timer_get_timecounter(void)
{
	return NULL;
}
26 27 28
#endif

#endif