Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timekeeping.c Create Date:2022-07-28 10:41:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Update the ktime_t based scalar nsec members of the timekeeper

Proto:static inline void tk_update_ktime_data(struct timekeeper *tk)

Type:void

Parameter:

TypeParameterName
struct timekeeper *tk
642  seconds = xtime_sec + seconds
643  nsec = nanoseconds
644  base = ns_to_ktime(seconds * NSEC_PER_SEC + nsec)
651  nsec += xtime_nsec >> shift
652  If nsec >= NSEC_PER_SEC Then seconds++
654  ktime_sec = seconds
657  base = ns_to_ktime(raw_sec * NSEC_PER_SEC)
Caller
NameDescribe
timekeeping_updatemust hold timekeeper_lock