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.
10 #ifndef __ASM_ARM_LOCALTIMER_H
11 #define __ASM_ARM_LOCALTIMER_H
13 #include <linux/errno.h>
14 #include <linux/interrupt.h>
16 struct clock_event_device
;
19 * Setup a per-cpu timer, whether it be a local timer or dummy broadcast
21 void percpu_timer_setup(void);
23 #ifdef CONFIG_LOCAL_TIMERS
25 #ifdef CONFIG_HAVE_ARM_TWD
29 #define local_timer_stop(c) twd_timer_stop((c))
34 * Stop the local timer
36 void local_timer_stop(struct clock_event_device
*);
41 * Setup a local timer interrupt for a CPU.
43 int local_timer_setup(struct clock_event_device
*);
47 static inline int local_timer_setup(struct clock_event_device
*evt
)
52 static inline void local_timer_stop(struct clock_event_device
*evt
)