summaryrefslogtreecommitdiff
path: root/arch/m32r
diff options
context:
space:
mode:
authorHirokazu Takata <takata@linux-m32r.org>2009-08-26 13:13:12 +0900
committerHirokazu Takata <takata@linux-m32r.org>2009-10-04 12:02:36 +0900
commitbac33bd571a9c2969efb52dd02c5407fbc49c360 (patch)
tree858fdd325cb19d96950bf1e6baae90849c7fea86 /arch/m32r
parentd2c5821c5de08175096f17166984d5e738cad024 (diff)
downloadlwn-bac33bd571a9c2969efb52dd02c5407fbc49c360.tar.gz
lwn-bac33bd571a9c2969efb52dd02c5407fbc49c360.zip
m32r: add rtc_lock variable
Add a spinlock variable "rtc_lock". This is taken from arch/arm/kernel/time.c. Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Diffstat (limited to 'arch/m32r')
-rw-r--r--arch/m32r/kernel/time.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/m32r/kernel/time.c b/arch/m32r/kernel/time.c
index ba61c4c73202..e7fee0f198d5 100644
--- a/arch/m32r/kernel/time.c
+++ b/arch/m32r/kernel/time.c
@@ -33,6 +33,15 @@
#include <asm/hw_irq.h>
+#if defined(CONFIG_RTC_DRV_CMOS) || defined(CONFIG_RTC_DRV_CMOS_MODULE)
+/* this needs a better home */
+DEFINE_SPINLOCK(rtc_lock);
+
+#ifdef CONFIG_RTC_DRV_CMOS_MODULE
+EXPORT_SYMBOL(rtc_lock);
+#endif
+#endif /* pc-style 'CMOS' RTC support */
+
#ifdef CONFIG_SMP
extern void smp_local_timer_interrupt(void);
#endif