Merge tag 'tags/disintegrate-tile-20121009' into for-linus
[linux-2.6-block.git] / arch / arm / include / asm / localtimer.h
CommitLineData
bc28248e
RK
1/*
2 * arch/arm/include/asm/localtimer.h
3 *
4 * Copyright (C) 2004-2005 ARM Ltd.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10#ifndef __ASM_ARM_LOCALTIMER_H
11#define __ASM_ARM_LOCALTIMER_H
12
bb1ac3ec
SG
13#include <linux/errno.h>
14
bc28248e
RK
15struct clock_event_device;
16
0ef330e1
MZ
17struct local_timer_ops {
18 int (*setup)(struct clock_event_device *);
19 void (*stop)(struct clock_event_device *);
20};
21
bc28248e 22#ifdef CONFIG_LOCAL_TIMERS
0ef330e1
MZ
23/*
24 * Register a local timer driver
25 */
26int local_timer_register(struct local_timer_ops *);
af90f10d 27#else
0ef330e1
MZ
28static inline int local_timer_register(struct local_timer_ops *ops)
29{
30 return -ENXIO;
31}
bc28248e
RK
32#endif
33
34#endif