aboutsummaryrefslogblamecommitdiffstats
path: root/arch/arm/include/asm/arch_timer.h
blob: d40229d9a1c98f839e1cf52e359502babea2c5dd (plain) (tree)
1
2
3
4
5
6
7
8
9


                             
                      
                              
 
                            
                                 
                                      
                                                     
     




                                              



                                                   




                                                                  


      
#ifndef __ASMARM_ARCH_TIMER_H
#define __ASMARM_ARCH_TIMER_H

#include <asm/errno.h>
#include <linux/clocksource.h>

#ifdef CONFIG_ARM_ARCH_TIMER
int arch_timer_of_register(void);
int arch_timer_sched_clock_init(void);
struct timecounter *arch_timer_get_timecounter(void);
#else
static inline int arch_timer_of_register(void)
{
	return -ENXIO;
}

static inline int arch_timer_sched_clock_init(void)
{
	return -ENXIO;
}

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

#endif