Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| struct timekeeper * | tk | |
| s64 | offset | |
| s32 | mult_adj |
| 1827 | If mult_adj == 0 Then |
| 1828 | Return |
| 1829 | Else if mult_adj == -1 Then |
| 1832 | Else if mult_adj != 1 Then |
| 1886 | WARN_ON_ONCE(1) |
| 1887 | Return |
| 1891 | xtime_interval += interval |
| 1892 | xtime_nsec -= offset |
| Name | Describe |
|---|---|
| timekeeping_adjust | Adjust the timekeeper's multiplier to the correct frequency* and also to reduce the accumulated error value. |
| 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 |