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:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pit_expect_msb

Proto:static inline int pit_expect_msb(unsigned char val, u64 *tscp, unsigned long *deltap)

Type:int

Parameter:

TypeParameterName
unsigned charval
u64 *tscp
unsigned long *deltap
492  tsc = 0 , prev_tsc = 0
494  When count < 50000 cycle
495  If Not This reads the current MSB of the PIT counter, and* checks if we are running on sufficiently fast and* non-virtualized hardware Then Break
497  prev_tsc = tsc
498  tsc = get_cycles()
500  deltap = get_cycles() - prev_tsc
501  tscp = tsc
507  Return count > 5
Caller
NameDescribe
quick_pit_calibrate