ARM: local timers: make the runtime registration interface mandatory
[linux-2.6.git] / arch / arm / include / asm / localtimer.h
blobf77ffc1eb0c2b0d2e5a6125169da694b33bd2a0f
1 /*
2 * arch/arm/include/asm/localtimer.h
4 * Copyright (C) 2004-2005 ARM Ltd.
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
13 #include <linux/errno.h>
15 struct clock_event_device;
17 struct local_timer_ops {
18 int (*setup)(struct clock_event_device *);
19 void (*stop)(struct clock_event_device *);
22 #ifdef CONFIG_LOCAL_TIMERS
24 * Register a local timer driver
26 int local_timer_register(struct local_timer_ops *);
27 #else
28 static inline int local_timer_register(struct local_timer_ops *ops)
30 return -ENXIO;
32 #endif
34 #endif