openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/util-linux/2.33.2-r0/util-linux-2.33.2/sys-utils/hwclock.c
static int synchronize_to_clock_tick(const struct hwclock_control* ctl)
{
    int rc;

    if (ctl->verbose)
        printf(_("Waiting for clock tick...\n"));

    rc = ur->synchronize_to_clock_tick(ctl);

    if (ctl->verbose)
    {
        if (rc)
            printf(_("...synchronization failed\n"));
        else
            printf(_("...got clock tick\n"));
    }

    return rc;
}
/*
 * Wait until the falling edge of the Hardware Clock's update flag so that
 * any time that is read from the clock immediately after we return will be
 * exact.
 *
 * The clock only has 1 second precision, so it gives the exact time only
 * once per second, right on the falling edge of the update flag.
 *
 * We wait (up to one second) either blocked waiting for an rtc device or in
 * a CPU spin loop. The former is probably not very accurate.
 *
 * Return 0 if it worked, nonzero if it didn't.
 */
Wait until the falling edge of the Hardware Clock's update flag so that
any time that is read from the clock immediately after we return will be
exact.

The clock only has 1 second precision, so it gives the exact time only
once per second, right on the falling edge of the update flag.

We wait (up to one second) either blocked waiting for an rtc device or in
a CPU spin loop. The former is probably not very accurate.

Return 0 if it worked, nonzero if it didn't.
Wait until the falling edge of the Hardware Clock ' s update flag so that any time that is read from the clock immediately after we return will be exact . The clock only has 1 second precision so it gives the exact time only once per second right on the falling edge of the update flag . We wait ( up to one second ) either blocked waiting for an rtc device or in a CPU spin loop . The former is probably not very accurate . Return 0 if it worked nonzero if it didn ' t .
static int synchronize_to_clock_tick(const struct hwclock_control* ctl)
{
    int rc;
    if (ctl->verbose)
        printf(_("Waiting for clock tick...\n"));
    rc = ur->synchronize_to_clock_tick(ctl);
    if (ctl->verbose)
    {
        if (rc)
            printf(_("...synchronization failed\n"));
        else
            printf(_("...got clock tick\n"));
    }
    return rc;
}
static int synchronize_to_clock_tick ( const struct hwclock_control * ctl ) { int rc ; if ( ctl -> verbose ) printf ( _ ( " \n " ) ) ; rc = ur -> synchronize_to_clock_tick ( ctl ) ; if ( ctl -> verbose ) { if ( rc ) printf ( _ ( " \n " ) ) ; else printf ( _ ( " \n " ) ) ; } return rc ; }
Wait until the falling edge of the Hardware Clock's update flag so that
 any time that is read from the clock immediately after we return will be
 exact.
Wait until the falling edge of the Hardware Clock ' s update flag so that any time that is read from the clock immediately after we return will be exact .