Lines Matching refs:stable
807 * stable snapshot process in order to ensure that a consistent
817 struct unlocked_clock_calend stable;
820 stable = flipflop[i]; /* take snapshot */
827 (void)hw_atomic_and(&stable.gen, ~(uint32_t)1);
833 * our snapshot is threfore stable).
835 if (flipflop[i].gen == stable.gen)
844 if (stable.calend.adjdelta < 0) {
847 if (now > stable.calend.adjstart) {
848 t32 = now - stable.calend.adjstart;
850 if (t32 > stable.calend.adjoffset)
851 now -= stable.calend.adjoffset;
853 now = stable.calend.adjstart;
857 now += stable.calend.offset;
862 *secs += stable.calend.epoch;