Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / arm / include / asm / localtimer.h
blobc6a18424888ed4992ed05913e77e262eb3126723
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>
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
27 #include "smp_twd.h"
29 #define local_timer_stop(c) twd_timer_stop((c))
31 #else
34 * Stop the local timer
36 void local_timer_stop(struct clock_event_device *);
38 #endif
41 * Setup a local timer interrupt for a CPU.
43 int local_timer_setup(struct clock_event_device *);
45 #else
47 static inline int local_timer_setup(struct clock_event_device *evt)
49 return -ENXIO;
52 static inline void local_timer_stop(struct clock_event_device *evt)
55 #endif
57 #endif