Function report |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-28 10:42:46 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Adjust the timekeeper's multiplier to the correct frequency* and also to reduce the accumulated error value.
Proto:static void timekeeping_adjust(struct timekeeper *tk, s64 offset)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct timekeeper * | tk | |
s64 | offset |
1908 | mult = mult - ntp_err_mult |
1909 | Else |
1921 | ntp_err_mult = If Difference between accumulated time and NTP time in ntp* shifted nano seconds. > 0 Then 1 Else 0 |
1922 | mult += ntp_err_mult |
1929 | Print a one-time message (analogous to WARN_ONCE() et al):(warning conditions "Adjusting %s more than 11%% (%ld vs %ld)\n", name, (long)mult, (long)mult + maxadj) |
1945 | If Value for the false possibility is greater at compile time((s64)xtime_nsec < 0) Then |
1946 | xtime_nsec += NSEC_PER_SEC << shift |
1948 | xtime_sec-- |
Name | Describe |
---|---|
timekeeping_advance | mekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |