Lines Matching defs:sync
303 * The function returns 0 if the clock is in sync with the external time
305 * -EAGAIN if the clock is not in sync with the external reference.
318 /* Success: time is in sync. */
335 * Clear the in-sync bit 2^31. All get_phys_clock calls will
336 * fail until the sync bit is turned back on. In addition
355 * Function to check if the clock is in sync.
370 * This is called once on the CPU that performed the clock sync.
389 panic("TOD clock sync offset %li is too large to drift\n",
419 /* Single threaded workqueue used for stp sync events */
505 * STP sync check machine check. This is called when the timing state
507 * After a STP sync check the clock is not in sync. The machine check
551 struct clock_sync_data *sync = data;
558 /* Wait until all other cpus entered the sync function. */
559 while (atomic_read(&sync->cpus) != 0)
567 sync->clock_delta = clock_delta;
575 sync->in_sync = rc ? -EAGAIN : 1;
579 atomic_dec(&sync->cpus);
581 while (READ_ONCE(sync->in_sync) == 0)
584 if (sync->in_sync != 1)
585 /* Didn't work. Clear per-cpu in sync bit again. */
588 clock_sync_local(sync->clock_delta);
620 * or STP is out of sync. In both cases, clear the leap second
694 /* Skip synchronization if the clock is already in sync. */