Use rtc_lock to protect RTC operations
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Wed, 2 Nov 2005 16:01:15 +0000 (01:01 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 7 Nov 2005 18:05:38 +0000 (18:05 +0000)
Many RTC routines were not protected against each other, so there are
potential races, for example, ntp-update against /dev/rtc.  This patch
fixes them using rtc_lock.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

No differences found