diff options
Diffstat (limited to 'arch/arm/include/asm/localtimer.h')
| -rw-r--r-- | arch/arm/include/asm/localtimer.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/arch/arm/include/asm/localtimer.h b/arch/arm/include/asm/localtimer.h index ff66638ff54d..c6a18424888e 100644 --- a/arch/arm/include/asm/localtimer.h +++ b/arch/arm/include/asm/localtimer.h | |||
| @@ -11,6 +11,7 @@ | |||
| 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> | ||
| 14 | 15 | ||
| 15 | struct clock_event_device; | 16 | struct clock_event_device; |
| 16 | 17 | ||
| @@ -19,27 +20,20 @@ struct clock_event_device; | |||
| 19 | */ | 20 | */ |
| 20 | void percpu_timer_setup(void); | 21 | void percpu_timer_setup(void); |
| 21 | 22 | ||
| 22 | /* | ||
| 23 | * Called from assembly, this is the local timer IRQ handler | ||
| 24 | */ | ||
| 25 | asmlinkage void do_local_timer(struct pt_regs *); | ||
| 26 | |||
| 27 | |||
| 28 | #ifdef CONFIG_LOCAL_TIMERS | 23 | #ifdef CONFIG_LOCAL_TIMERS |
| 29 | 24 | ||
| 30 | #ifdef CONFIG_HAVE_ARM_TWD | 25 | #ifdef CONFIG_HAVE_ARM_TWD |
| 31 | 26 | ||
| 32 | #include "smp_twd.h" | 27 | #include "smp_twd.h" |
| 33 | 28 | ||
| 34 | #define local_timer_ack() twd_timer_ack() | 29 | #define local_timer_stop(c) twd_timer_stop((c)) |
| 35 | 30 | ||
| 36 | #else | 31 | #else |
| 37 | 32 | ||
| 38 | /* | 33 | /* |
| 39 | * Platform provides this to acknowledge a local timer IRQ. | 34 | * Stop the local timer |
| 40 | * Returns true if the local timer IRQ is to be processed. | ||
| 41 | */ | 35 | */ |
| 42 | int local_timer_ack(void); | 36 | void local_timer_stop(struct clock_event_device *); |
| 43 | 37 | ||
| 44 | #endif | 38 | #endif |
| 45 | 39 | ||
| @@ -54,6 +48,10 @@ static inline int local_timer_setup(struct clock_event_device *evt) | |||
| 54 | { | 48 | { |
| 55 | return -ENXIO; | 49 | return -ENXIO; |
| 56 | } | 50 | } |
| 51 | |||
| 52 | static inline void local_timer_stop(struct clock_event_device *evt) | ||
| 53 | { | ||
| 54 | } | ||
| 57 | #endif | 55 | #endif |
| 58 | 56 | ||
| 59 | #endif | 57 | #endif |
