summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-versatile/localtimer.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2011-01-19 11:07:38 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-02-19 12:11:36 +0100
commitcdab142a80d859984eb5e3876e0e762b1f0bded9 (patch)
tree85f212da3ef394d2c25c343ee5fd911f6d4695f2 /arch/arm/plat-versatile/localtimer.c
parentARM: integrator/versatile: consolidate FPGA IRQ handling code (diff)
downloadlinux-cdab142a80d859984eb5e3876e0e762b1f0bded9.tar.xz
linux-cdab142a80d859984eb5e3876e0e762b1f0bded9.zip
ARM: realview/vexpress: consolidate localtimer support
Realview and Versatile Express local timer support is identical, so consolidate the implementations. Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-versatile/localtimer.c')
-rw-r--r--arch/arm/plat-versatile/localtimer.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/plat-versatile/localtimer.c b/arch/arm/plat-versatile/localtimer.c
new file mode 100644
index 000000000000..83ebee569333
--- /dev/null
+++ b/arch/arm/plat-versatile/localtimer.c
@@ -0,0 +1,26 @@
+/*
+ * linux/arch/arm/plat-versatile/localtimer.c
+ *
+ * Copyright (C) 2002 ARM Ltd.
+ * All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#include <linux/init.h>
+#include <linux/smp.h>
+#include <linux/clockchips.h>
+
+#include <asm/smp_twd.h>
+#include <asm/localtimer.h>
+#include <mach/irqs.h>
+
+/*
+ * Setup the local clock events for a CPU.
+ */
+void __cpuinit local_timer_setup(struct clock_event_device *evt)
+{
+ evt->irq = IRQ_LOCALTIMER;
+ twd_timer_setup(evt);
+}