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)
commit53c2df2f4ebbc1d8231ca7cc13ac5381230888b1
treea7446ec56dd877d77ef7318b4bcdc3d38555ff0a
parente329331aedeca0f2a7e15bd26a829ee1619c05e0
Use rtc_lock to protect RTC operations

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>
13 files changed:
arch/mips/ddb5xxx/common/rtc_ds1386.c
arch/mips/dec/time.c
arch/mips/jmr3927/common/rtc_ds1742.c
arch/mips/lasat/ds1603.c
arch/mips/momentum/jaguar_atx/setup.c
arch/mips/momentum/ocelot_3/setup.c
arch/mips/momentum/ocelot_c/setup.c
arch/mips/pmc-sierra/yosemite/setup.c
arch/mips/sgi-ip22/ip22-time.c
arch/mips/sibyte/swarm/rtc_m41t81.c
arch/mips/sibyte/swarm/rtc_xicor1241.c
include/asm-mips/mc146818-time.h
include/asm-mips/time.h