diff options
author | Karel Zak | 2012-09-21 12:05:12 +0200 |
---|---|---|
committer | Karel Zak | 2012-09-21 12:05:12 +0200 |
commit | 72fc8ca062f538413419f6b282827dbd5e6a7b06 (patch) | |
tree | 9a15beaf5e21904f569c505d6b06d2851d2c70b2 /sys-utils/hwclock-rtc.c | |
parent | docs: AUTHORS, NEWS: UTF-8 fixes. (diff) | |
download | kernel-qcow2-util-linux-72fc8ca062f538413419f6b282827dbd5e6a7b06.tar.gz kernel-qcow2-util-linux-72fc8ca062f538413419f6b282827dbd5e6a7b06.tar.xz kernel-qcow2-util-linux-72fc8ca062f538413419f6b282827dbd5e6a7b06.zip |
hwclock: wait time in hwclock is not long enough for some ARM devices
On Sun, Sep 16, 2012 at 02:11:48PM +0800, Queen Adam wrote:
> 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.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/hwclock-rtc.c')
-rw-r--r-- | sys-utils/hwclock-rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/hwclock-rtc.c b/sys-utils/hwclock-rtc.c index 338094190..779051d85 100644 --- a/sys-utils/hwclock-rtc.c +++ b/sys-utils/hwclock-rtc.c @@ -303,12 +303,12 @@ static int synchronize_to_clock_tick_rtc(void) struct timeval tv; /* - * Wait up to five seconds for the next update + * Wait up to ten seconds for the next update * interrupt */ 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; |