Home
last modified time | relevance | path

Searched refs:offset_nsec (Results 1 – 1 of 1) sorted by relevance

/linux/kernel/time/
H A Dntp.c498 static void sched_sync_hw_clock(unsigned long offset_nsec, bool retry) in sched_sync_hw_clock() argument
503 exp = ktime_add_ns(exp, 2ULL * NSEC_PER_SEC - offset_nsec); in sched_sync_hw_clock()
505 exp = ktime_add_ns(exp, SYNC_PERIOD_NS - offset_nsec); in sched_sync_hw_clock()
569 static int update_rtc(struct timespec64 *to_set, unsigned long *offset_nsec) in update_rtc() argument
583 if (*offset_nsec == rtc->set_offset_nsec) { in update_rtc()
588 *offset_nsec = rtc->set_offset_nsec; in update_rtc()
596 static inline int update_rtc(struct timespec64 *to_set, unsigned long *offset_nsec) in update_rtc() argument
626 static unsigned long offset_nsec = NSEC_PER_SEC / 2; in sync_hw_clock() local
640 if (!rtc_tv_nsec_ok(offset_nsec, &to_set, &now)) in sync_hw_clock()
653 res = update_rtc(&to_set, &offset_nsec); in sync_hw_clock()
[all …]