aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/smp_twd.h
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2012-01-10 22:15:45 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2012-03-13 13:27:51 +0000
commitd8e0364364d333feb4564bb7d7d983182b34427e (patch)
treed79b09cf76a2a0852086b5b11e6f824d158f4cce /arch/arm/include/asm/smp_twd.h
parentARM: smp_twd: add runtime registration support (diff)
downloadlinux-dev-d8e0364364d333feb4564bb7d7d983182b34427e.tar.xz
linux-dev-d8e0364364d333feb4564bb7d7d983182b34427e.zip
ARM: smp_twd: add device tree support
Add bindings to support DT discovery of the ARM Timer Watchdog (aka TWD). Only the timer side is converted by this patch. Acked-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/include/asm/smp_twd.h')
-rw-r--r--arch/arm/include/asm/smp_twd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/smp_twd.h b/arch/arm/include/asm/smp_twd.h
index 16c89b793f90..8047e6e580b6 100644
--- a/arch/arm/include/asm/smp_twd.h
+++ b/arch/arm/include/asm/smp_twd.h
@@ -40,4 +40,12 @@ struct twd_local_timer name __initdata = { \
int twd_local_timer_register(struct twd_local_timer *);
+#ifdef CONFIG_HAVE_ARM_TWD
+void twd_local_timer_of_register(void);
+#else
+static inline void twd_local_timer_of_register(void)
+{
+}
+#endif
+
#endif