Lines Matching refs:stable
919 * stable snapshot process in order to ensure that a consistent
929 struct unlocked_clock_calend stable;
932 stable = flipflop[i]; /* take snapshot */
939 (void)hw_atomic_and(&stable.gen, ~(uint32_t)1);
945 * our snapshot is threfore stable).
947 if (flipflop[i].gen == stable.gen)
956 if (stable.calend.adjdelta < 0) {
959 if (now > stable.calend.adjstart) {
960 t32 = (uint32_t)(now - stable.calend.adjstart);
962 if (t32 > stable.calend.adjoffset)
963 now -= stable.calend.adjoffset;
965 now = stable.calend.adjstart;
969 now += stable.calend.offset;
974 *secs += (clock_sec_t)stable.calend.epoch;