Re: hwclock "hanging" for ~24 hours

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karel Zak schrieb:
On Fri, Aug 08, 2008 at 10:14:33PM +0200, Tomasz Chmielewski wrote:
open("/dev/rtc", O_RDONLY|O_LARGEFILE)  = 3
ioctl(3, RTC_UIE_ON, 0)                 = -1 ENOTTY (Inappropriate ioctl for device)
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
ioctl(3, RTC_RD_TIME, {tm_sec=0, tm_min=0, tm_hour=0, tm_mday=0, tm_mon=-1, tm_year=100, ...}) = 0
(...)

 Yeah, our synchronize_to_clock_tick() :-)


  hwclock/rtc.c, busywait_for_rtc_clock_tick():

  for (i = 0;
       (rc = do_rtc_read_ioctl(rtc_fd, &nowtime)) == 0
        && start_time.tm_sec == nowtime.tm_sec;
       i++)
    if (i >= 1000000) {
      fprintf(stderr, _("Timed out waiting for time change.\n"));
      return 2;
    }

What about waiting here in seconds rather than to make these loops?

i.e., wait 10 or 30 seconds, if it is more than that, bail out?


But would it solve the issue, really?

hwclock from busybox is able to show the clock (Tue Nov 30 00:00:00 1999  0.000000) and also set it; the above seems to exit only - and still, we're not able to show or set the clock?


--
Tomasz Chmielewski
http://wpkg.org

--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux