函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tsc.c Create Date:2022-07-27 08:46:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pit_expect_msb

函数原型:static inline int pit_expect_msb(unsigned char val, u64 *tscp, unsigned long *deltap)

返回类型:int

参数:

类型参数名称
unsigned charval
u64 *tscp
unsigned long *deltap
492  tsc等于0, prev_tsc等于0
494 count小于50000循环
495  如果非This reads the current MSB of the PIT counter, and* checks if we are running on sufficiently fast and* non-virtualized hardware退出
497  prev_tsc等于tsc
498  tsc等于get_cycles()
500  deltap等于get_cycles()减prev_tsc
501  tscp等于tsc
507  返回:count大于5
调用者
名称描述
quick_pit_calibrate