Lines Matching refs:tkd
614 static void tk_update_leap_state_all(struct tk_data *tkd) in tk_update_leap_state_all() argument
616 write_seqcount_begin(&tkd->seq); in tk_update_leap_state_all()
617 tk_update_leap_state(&tkd->shadow_timekeeper); in tk_update_leap_state_all()
618 tkd->timekeeper.next_leap_ktime = tkd->shadow_timekeeper.next_leap_ktime; in tk_update_leap_state_all()
619 write_seqcount_end(&tkd->seq); in tk_update_leap_state_all()
658 static void timekeeping_restore_shadow(struct tk_data *tkd) in timekeeping_restore_shadow() argument
660 lockdep_assert_held(&tkd->lock); in timekeeping_restore_shadow()
661 memcpy(&tkd->shadow_timekeeper, &tkd->timekeeper, sizeof(tkd->timekeeper)); in timekeeping_restore_shadow()
664 static void timekeeping_update_from_shadow(struct tk_data *tkd, unsigned int action) in timekeeping_update_from_shadow() argument
668 lockdep_assert_held(&tkd->lock); in timekeeping_update_from_shadow()
677 write_seqcount_begin(&tkd->seq); in timekeeping_update_from_shadow()
705 memcpy(&tkd->timekeeper, tk, sizeof(*tk)); in timekeeping_update_from_shadow()
706 write_seqcount_end(&tkd->seq); in timekeeping_update_from_shadow()
1652 static __init void tkd_basic_setup(struct tk_data *tkd) in tkd_basic_setup() argument
1654 raw_spin_lock_init(&tkd->lock); in tkd_basic_setup()
1655 seqcount_raw_spinlock_init(&tkd->seq, &tkd->lock); in tkd_basic_setup()