Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Atomically update the sched_clock() epoch.

Proto:static void update_sched_clock(void)

Type:void

Parameter:Nothing

148  rd = read_data[0]
150  cyc = actual_read_sched_clock()
151  ns = epoch_ns + cyc_to_ns((cyc - epoch_cyc) & sched_clock_mask, mult, shift)
153  epoch_ns = ns
154  epoch_cyc = cyc
156  Updating the data required to read the clock
Caller
NameDescribe
sched_clock_poll
generic_sched_clock_init
sched_clock_suspend