Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tsc.c Create Date:2022-07-28 07:46:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cyc2ns_read_begin

Proto:__always_inline void cyc2ns_read_begin(struct cyc2ns_data *data)

Type:void

Parameter:

TypeParameterName
struct cyc2ns_data *data
66  preempt_disable_notrace()
68  Do
69  seq = Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(sequence)
70  idx = seq & 1
72  cyc2ns_offset = Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(cyc2ns_offset)
73  cyc2ns_mul = Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(cyc2ns_mul)
74  cyc2ns_shift = Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(cyc2ns_shift)
76  When Value for the false possibility is greater at compile time(seq != Operations with implied preemption/interrupt protection. These* operations can be used without worrying about preemption or interrupt.(sequence)) cycle
Caller
NameDescribe
cycles_2_nsAccelerators for sched_clock()* convert from cycles(64bits) => nanoseconds (64bits)* basic equation:* ns = cycles / (freq / ns_per_sec)* ns = cycles * (ns_per_sec / freq)* ns = cycles * (10^9 / (cpu_khz * 10^3))* ns = cycles * (10^6 / cpu_khz)