aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/localtimer.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2009-05-16 12:14:21 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-05-17 19:16:41 +0100
commitf32f4ce25745209f16a5a6cef7442144b596c68a (patch)
tree76083f10ee56c82177669bb100358ea2818f8f5a /arch/arm/include/asm/localtimer.h
parent[ARM] smp: separate SCU support code from realview (diff)
downloadlinux-dev-f32f4ce25745209f16a5a6cef7442144b596c68a.tar.xz
linux-dev-f32f4ce25745209f16a5a6cef7442144b596c68a.zip
[ARM] smp: allow re-use of realview localtimer TWD support
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/localtimer.h')
-rw-r--r--arch/arm/include/asm/localtimer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/include/asm/localtimer.h b/arch/arm/include/asm/localtimer.h
index 3f8c9ebb646c..50c7e7cfd670 100644
--- a/arch/arm/include/asm/localtimer.h
+++ b/arch/arm/include/asm/localtimer.h
@@ -24,6 +24,16 @@ asmlinkage void do_local_timer(struct pt_regs *);
#ifdef CONFIG_LOCAL_TIMERS
+
+#ifdef CONFIG_HAVE_ARM_TWD
+
+#include "smp_twd.h"
+
+#define local_timer_ack() twd_timer_ack()
+#define local_timer_stop() twd_timer_stop()
+
+#else
+
/*
* Platform provides this to acknowledge a local timer IRQ.
* Returns true if the local timer IRQ is to be processed.
@@ -35,6 +45,8 @@ int local_timer_ack(void);
*/
void local_timer_stop(void);
+#endif
+
/*
* Setup a local timer interrupt for a CPU.
*/