函数逻辑报告 |
Source Code:arch\x86\kernel\tsc.c |
Create Date:2022-07-27 08:46:10 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Read TSC and the reference counters. Take care of any disturbances
函数原型:static u64 tsc_read_refs(u64 *p, int hpet)
返回类型:u64
参数:
类型 | 参数 | 名称 |
---|---|---|
u64 * | p | |
int | hpet |
312 | thresh等于如果tsc_khz则tsc_khz右移5位否则TSC_DEFAULT_THRESHOLD |
315 | 以i小于MAX_RETRIES循环 |
316 | t1等于get_cycles() |
317 | 如果hpet则p等于hpet_readl(HPET_COUNTER)按位与0xFFFFFFFF |
319 | 否则p等于acpi_pm_read_early() |
321 | t2等于get_cycles() |
325 | 返回:ULLONG_MAX |
名称 | 描述 |
---|---|
pit_hpet_ptimer_calibrate_cpu | alibrate cpu using pit, hpet, and ptimer methods. They are available* later in boot after acpi is initialized. |
tsc_refine_calibration_work |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |