Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Apply a multiplier adjustment to the timekeeper

Proto:static __always_inline void timekeeping_apply_adjustment(struct timekeeper *tk, s64 offset, s32 mult_adj)

Type:void

Parameter:

TypeParameterName
struct timekeeper *tk
s64offset
s32mult_adj
1825  interval = The following members are for timekeeping internal use
1827  If mult_adj == 0 Then
1828  Return
1829  Else if mult_adj == -1 Then
1830  interval = -interval
1831  offset = -offset
1832  Else if mult_adj != 1 Then
1833  interval *= mult_adj
1834  offset *= mult_adj
1884  If mult_adj > 0 && mult + mult_adj < mult_adj Then
1886  WARN_ON_ONCE(1)
1887  Return
1890  mult += mult_adj
1891  xtime_interval += interval
1892  xtime_nsec -= offset
Caller
NameDescribe
timekeeping_adjustAdjust the timekeeper's multiplier to the correct frequency* and also to reduce the accumulated error value.