On NTP, RTCs and accurately setting their time
Russell King - ARM Linux
linux at armlinux.org.uk
Thu Sep 21 04:29:37 PDT 2017
On Wed, Sep 20, 2017 at 04:45:22PM -0600, Jason Gunthorpe wrote:
> + if (!fail || fail == -ENODEV)
> + timespec64_add_ns(&next, 659 * NSEC_PER_SEC);
> + else
> + /* Update failed, try again in about 10 seconds */
> + timespec64_add_ns(&next, 10 * NSEC_PER_SEC);
Trying to build this, the compiler complains about integer overflow here.
You need to cast these to 64-bit values.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up
According to speedtest.net: 8.21Mbps down 510kbps up
More information about the linux-arm-kernel
mailing list