函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:Read TSC and the reference counters. Take care of any disturbances

函数原型:static u64 tsc_read_refs(u64 *p, int hpet)

返回类型:u64

参数:

类型参数名称
u64 *p
inthpet
312  thresh等于如果tsc_khztsc_khz右移5位否则TSC_DEFAULT_THRESHOLD
315 i小于MAX_RETRIES循环
316  t1等于get_cycles()
317  如果hpetp等于hpet_readl(HPET_COUNTER)按位与0xFFFFFFFF
319  否则p等于acpi_pm_read_early()
321  t2等于get_cycles()
322  如果t2t1小于thresh则返回:t2
325  返回:ULLONG_MAX
调用者
名称描述
pit_hpet_ptimer_calibrate_cpualibrate cpu using pit, hpet, and ptimer methods. They are available* later in boot after acpi is initialized.
tsc_refine_calibration_work