2009-05-18 00:58:34 +07: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 20:57:24 +07:00
|
|
|
#include <linux/errno.h>
|
|
|
|
|
2009-05-18 00:58:34 +07:00
|
|
|
struct clock_event_device;
|
|
|
|
|
2012-01-11 02:26:45 +07:00
|
|
|
struct local_timer_ops {
|
|
|
|
int (*setup)(struct clock_event_device *);
|
|
|
|
void (*stop)(struct clock_event_device *);
|
|
|
|
};
|
|
|
|
|
2009-05-18 00:58:34 +07:00
|
|
|
#ifdef CONFIG_LOCAL_TIMERS
|
2012-01-11 02:26:45 +07:00
|
|
|
/*
|
|
|
|
* Register a local timer driver
|
|
|
|
*/
|
|
|
|
int local_timer_register(struct local_timer_ops *);
|
2011-02-24 00:53:15 +07:00
|
|
|
#else
|
2012-01-11 02:26:45 +07:00
|
|
|
static inline int local_timer_register(struct local_timer_ops *ops)
|
|
|
|
{
|
|
|
|
return -ENXIO;
|
|
|
|
}
|
2009-05-18 00:58:34 +07:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|