From: Hirokazu Takata Date: Wed, 26 Aug 2009 04:13:12 +0000 (+0900) Subject: m32r: add rtc_lock variable X-Git-Tag: v2.6.32-rc3~7^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bac33bd571a9c2969efb52dd02c5407fbc49c360;p=profile%2Fcommon%2Fkernel-common.git 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 --- diff --git a/arch/m32r/kernel/time.c b/arch/m32r/kernel/time.c index ba61c4c..e7fee0f1 100644 --- a/arch/m32r/kernel/time.c +++ b/arch/m32r/kernel/time.c @@ -33,6 +33,15 @@ #include +#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