Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:timekeeping_suspend

Proto:int timekeeping_suspend(void)

Type:int

Parameter:Nothing

1738  tk = timekeeper
1745  ad_persistent_clock64 - Return time from the persistent clock.* Weak dummy function for arches that do not yet support it.* Reads the time from the battery backed persistent clock.* Returns a timespec with tv_sec=0 and tv_nsec=0 if unsupported.
1752  If seconds || nanoseconds Then Flag for if there is a persistent clock on this platform = true
1755  Flag reflecting whether timekeeping_resume() has injected sleeptime = true
1757  raw_spin_lock_irqsave( & timekeeper_lock, flags)
1758  write_seqcount_begin( & seq)
1759  mekeeping_forward_now - update clock to the current time* Forward the current clock to update its state since the last call to* update_wall_time(). This is useful before significant clock changes,
1760  lag for if timekeeping is suspended = 1
1767  curr_clock = clock
1768  cycle_now = cycle_last
1769  clocksource_start_suspend_timing(curr_clock, cycle_now)
1771  If Flag for if there is a persistent clock on this platform Then
1778  delta = sub = lhs - rhs, in normalized form
1779  delta_delta = sub = lhs - rhs, in normalized form
1785  old_delta = delta
1786  Else
1793  must hold timekeeper_lock
1794  halt_fast_timekeeper - Prevent fast timekeeper from accessing clocksource.*@tk: Timekeeper to snapshot.* It generally is unsafe to access the clocksource after timekeeping has been* suspended, so take a snapshot of the readout base of @tk and use it as the
1795  write_seqcount_end( & seq)
1796  raw_spin_unlock_irqrestore( & timekeeper_lock, flags)
1798  tick_suspend()
1799  clocksource_suspend()
1800  clockevents_suspend()
1802  Return 0