diff options
Diffstat (limited to 'arch/arm/include/asm/localtimer.h')
-rw-r--r-- | arch/arm/include/asm/localtimer.h | 37 |
1 files changed, 7 insertions, 30 deletions
diff --git a/arch/arm/include/asm/localtimer.h b/arch/arm/include/asm/localtimer.h index c6a18424888e..f77ffc1eb0c2 100644 --- a/arch/arm/include/asm/localtimer.h +++ b/arch/arm/include/asm/localtimer.h | |||
@@ -11,47 +11,24 @@ | |||
11 | #define __ASM_ARM_LOCALTIMER_H | 11 | #define __ASM_ARM_LOCALTIMER_H |
12 | 12 | ||
13 | #include <linux/errno.h> | 13 | #include <linux/errno.h> |
14 | #include <linux/interrupt.h> | ||
15 | 14 | ||
16 | struct clock_event_device; | 15 | struct clock_event_device; |
17 | 16 | ||
18 | /* | 17 | struct local_timer_ops { |
19 | * Setup a per-cpu timer, whether it be a local timer or dummy broadcast | 18 | int (*setup)(struct clock_event_device *); |
20 | */ | 19 | void (*stop)(struct clock_event_device *); |
21 | void percpu_timer_setup(void); | 20 | }; |
22 | 21 | ||
23 | #ifdef CONFIG_LOCAL_TIMERS | 22 | #ifdef CONFIG_LOCAL_TIMERS |
24 | |||
25 | #ifdef CONFIG_HAVE_ARM_TWD | ||
26 | |||
27 | #include "smp_twd.h" | ||
28 | |||
29 | #define local_timer_stop(c) twd_timer_stop((c)) | ||
30 | |||
31 | #else | ||
32 | |||
33 | /* | ||
34 | * Stop the local timer | ||
35 | */ | ||
36 | void local_timer_stop(struct clock_event_device *); | ||
37 | |||
38 | #endif | ||
39 | |||
40 | /* | 23 | /* |
41 | * Setup a local timer interrupt for a CPU. | 24 | * Register a local timer driver |
42 | */ | 25 | */ |
43 | int local_timer_setup(struct clock_event_device *); | 26 | int local_timer_register(struct local_timer_ops *); |
44 | |||
45 | #else | 27 | #else |
46 | 28 | static inline int local_timer_register(struct local_timer_ops *ops) | |
47 | static inline int local_timer_setup(struct clock_event_device *evt) | ||
48 | { | 29 | { |
49 | return -ENXIO; | 30 | return -ENXIO; |
50 | } | 31 | } |
51 | |||
52 | static inline void local_timer_stop(struct clock_event_device *evt) | ||
53 | { | ||
54 | } | ||
55 | #endif | 32 | #endif |
56 | 33 | ||
57 | #endif | 34 | #endif |