2009-05-18 01:58:34 +08:00
|
|
|
/*
|
|
|
|
* arch/arm/include/asm/localtimer.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004-2005 ARM Ltd.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_ARM_LOCALTIMER_H
|
|
|
|
#define __ASM_ARM_LOCALTIMER_H
|
|
|
|
|
2011-10-06 21:57:24 +08:00
|
|
|
#include <linux/errno.h>
|
|
|
|
|
2009-05-18 01:58:34 +08:00
|
|
|
struct clock_event_device;
|
|
|
|
|
2012-01-11 03:26:45 +08:00
|
|
|
struct local_timer_ops {
|
|
|
|
int (*setup)(struct clock_event_device *);
|
|
|
|
void (*stop)(struct clock_event_device *);
|
|
|
|
};
|
|
|
|
|
2009-05-18 01:58:34 +08:00
|
|
|
#ifdef CONFIG_LOCAL_TIMERS
|
2012-01-11 03:26:45 +08:00
|
|
|
/*
|
|
|
|
* Register a local timer driver
|
|
|
|
*/
|
|
|
|
int local_timer_register(struct local_timer_ops *);
|
2011-02-24 01:53:15 +08:00
|
|
|
#else
|
2012-01-11 03:26:45 +08:00
|
|
|
static inline int local_timer_register(struct local_timer_ops *ops)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
2009-05-18 01:58:34 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|