util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Default wait time in hwclock is not long enough for some ARM devices
@ 2012-09-16  6:11 Queen Adam
  2012-09-21 10:06 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Queen Adam @ 2012-09-16  6:11 UTC (permalink / raw)
  To: util-linux

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

Hi,

I'm using Archlinux ARM for my Melo A100 box.
The hwclock always timeout when using select() in rtc.c.

After I change the timeout from 5 to 10, the problem is solved.

In fact the timeout in my ARM box seems only to be a little larger than 5s.

I also attached the patch.

[-- Attachment #2: patch --]
[-- Type: application/octet-stream, Size: 560 bytes --]

diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c
index 3380941..640f826 100644
--- a/sys-utils/hwclock-rtc.c
+++ b/sys-utils/hwclock-rtc.c
@@ -308,7 +308,7 @@ static int synchronize_to_clock_tick_rtc(void)
                         */
                        FD_ZERO(&rfds);
                        FD_SET(rtc_fd, &rfds);
-                       tv.tv_sec = 5;
+                       tv.tv_sec = 10;
                        tv.tv_usec = 0;
                        rc = select(rtc_fd + 1, &rfds, NULL, NULL, &tv);
                        ret = 1;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Default wait time in hwclock is not long enough for some ARM devices
  2012-09-16  6:11 Default wait time in hwclock is not long enough for some ARM devices Queen Adam
@ 2012-09-21 10:06 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2012-09-21 10:06 UTC (permalink / raw)
  To: Queen Adam; +Cc: util-linux

On Sun, Sep 16, 2012 at 02:11:48PM +0800, Queen Adam wrote:
> After I change the timeout from 5 to 10, the problem is solved.

 Applied, thanks.


-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-21 10:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-16  6:11 Default wait time in hwclock is not long enough for some ARM devices Queen Adam
2012-09-21 10:06 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).