[Bug 1549] New: hwclock --systohc can take 25 seconds

bugzilla at busybox.net bugzilla at busybox.net
Wed Apr 14 10:53:57 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=1549

              Host: GNU/Linux 2.6 x86
            Target: GNU/Linux 2.4 ARM / i.MX21
             Build: 1.16.1
           Summary: hwclock --systohc can take 25 seconds
           Product: Busybox
           Version: 1.16.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: ivo.clarysse at gmail.com
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


Since busybox 1.6.0, "hwclock --systohc" takes 25 seconds to complete on a
Freescale i.MX21 (an ARM-based SoC) running at 266MHz.

This is due to the ""2010-01-06 hwclock: fix sizeof bug (used it on pointer,
not array); make --systohc exact" change introduced in busybox 1.16.0.

Changing TWEAK_USEC from 200 to 1000 brought this time down again to less than
0.1 second.

By default TWEAK_USEC appears to be tuned for a 2.2GHz Intel Core 2. It would
appear that when building for a typical embedded device, busybox must be
patched to have 'hwclock --systohc' complete in an acceptable timespan.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list