函数逻辑报告

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

函数名称:Calculate the TSC frequency from HPET reference

函数原型:static unsigned long calc_hpet_ref(u64 deltatsc, u64 hpet1, u64 hpet2)

返回类型:unsigned long

参数:

类型参数名称
u64deltatsc
u64hpet1
u64hpet2
335  如果hpet2小于hpet1hpet2加等于0x100000000ULL
337  hpet2减等于hpet1
338  tmp等于hpet2hpet_readl(HPET_PERIOD)
339  do_div() is NOT a C function(tmp, 1000000)
340  deltatsc等于div64_u64 - unsigned 64bit divide with 64bit divisor*@dividend: 64bit dividend*@divisor: 64bit divisor* This implementation is a modified version of the algorithm proposed* by the book 'Hacker's Delight'. The original source and full proof
342  返回:deltatsc
调用者
名称描述
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