Function report |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-28 10:41:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:k_setup_internals - Set up internals to use clocksource clock
Proto:static void tk_setup_internals(struct timekeeper *tk, struct clocksource *clock)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct timekeeper * | tk | |
| struct clocksource * | clock |
| 293 | ++cs_was_changed_seq |
| 301 | cycle_last = cycle_last |
| 304 | tmp = NTP_INTERVAL_LENGTH |
| 306 | ntpinterval = tmp |
| 316 | xtime_interval = interval * mult |
| 317 | xtime_remainder = ntpinterval - xtime_interval |
| 318 | raw_interval = interval * mult |
| 321 | If old_clock Then |
| 322 | shift_change = shift - shift |
| 323 | If shift_change < 0 Then |
| 324 | xtime_nsec >>= -shift_change |
| 325 | xtime_nsec >>= -shift_change |
| 326 | Else |
| 327 | xtime_nsec <<= shift_change |
| 328 | xtime_nsec <<= shift_change |
| 336 | ntp_error_shift = NTP_SCALE_SHIFT - shift |
| 346 | ntp_err_mult = 0 |
| Name | Describe |
|---|---|
| change_clocksource | hange_clocksource - Swaps clocksources if a new one is available* Accumulates current time interval and initializes new clocksource |
| timekeeping_init | mekeeping_init - Initializes the clocksource and common timekeeping values |
| 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 |