Function report |
Source Code:kernel\time\timekeeping.c |
Create Date:2022-07-28 10:42:35 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mekeeping_init - Initializes the clocksource and common timekeeping values
Proto:void __init timekeeping_init(void)
Type:void
Parameter:Nothing
| 1535 | tk = timekeeper |
| 1544 | pr_warn("Persistent clock returned invalid value") |
| 1545 | wall_time = (struct timespec64){0} |
| 1548 | If lhs < rhs: return <0* lhs == rhs: return 0* lhs > rhs: return >0 < 0 Then boot_offset = (structtimespec64){0} |
| 1557 | raw_spin_lock_irqsave( & timekeeper_lock, flags) |
| 1558 | write_seqcount_begin( & seq) |
| 1559 | ntp_init() |
| 1561 | clock = clocksource_default_clock() |
| 1566 | tk_set_xtime(tk, & wall_time) |
| 1567 | raw_sec = 0 |
| 1569 | tk_set_wall_to_mono(tk, wall_to_mono) |
| 1573 | write_seqcount_end( & seq) |
| 1574 | raw_spin_unlock_irqrestore( & timekeeper_lock, flags) |
| 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 |