diff options
author | Matt Mackall <mpm@selenic.com> | 2006-03-28 11:56:07 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-28 19:16:01 +0200 |
commit | 04cfbee0fcb2a2ab31344ac9ace1dd370f3de2bd (patch) | |
tree | f1361eb5569b96eeea61c9b68df5302b1bc77ba0 /arch | |
parent | [PATCH] RTC: Remove RTC UIP synchronization on MIPS-based DEC (diff) | |
download | linux-04cfbee0fcb2a2ab31344ac9ace1dd370f3de2bd.tar.xz linux-04cfbee0fcb2a2ab31344ac9ace1dd370f3de2bd.zip |
[PATCH] RTC: Remove RTC UIP synchronization on SH03
Signed-off-by: Matt Mackall <mpm@selenic.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Kazumoto Kojima <kkojima@rr.iij4u.or.jp>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/boards/sh03/rtc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/sh/boards/sh03/rtc.c b/arch/sh/boards/sh03/rtc.c index cbeca7037ba5..e8bec67be84d 100644 --- a/arch/sh/boards/sh03/rtc.c +++ b/arch/sh/boards/sh03/rtc.c @@ -48,13 +48,9 @@ extern spinlock_t rtc_lock; unsigned long get_cmos_time(void) { unsigned int year, mon, day, hour, min, sec; - int i; spin_lock(&rtc_lock); again: - for (i = 0 ; i < 1000000 ; i++) /* may take up to 1 second... */ - if (!(ctrl_inb(RTC_CTL) & RTC_BUSY)) - break; do { sec = (ctrl_inb(RTC_SEC1) & 0xf) + (ctrl_inb(RTC_SEC10) & 0x7) * 10; min = (ctrl_inb(RTC_MIN1) & 0xf) + (ctrl_inb(RTC_MIN10) & 0xf) * 10; |