From: Matt Mackall Date: Tue, 28 Mar 2006 09:56:07 +0000 (-0800) Subject: [PATCH] RTC: Remove RTC UIP synchronization on SH03 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=04cfbee0fcb2a2ab31344ac9ace1dd370f3de2bd;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [PATCH] RTC: Remove RTC UIP synchronization on SH03 Signed-off-by: Matt Mackall Cc: Paul Mundt Cc: Kazumoto Kojima Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;