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

Name:Calculate the TSC frequency from HPET reference

Proto:static unsigned long calc_hpet_ref(u64 deltatsc, u64 hpet1, u64 hpet2)

Type:unsigned long

Parameter:

TypeParameterName
u64deltatsc
u64hpet1
u64hpet2
335  If hpet2 < hpet1 Then hpet2 += 0x100000000ULL
337  hpet2 -= hpet1
338  tmp = hpet2 * hpet_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  Return deltatsc
Caller
NameDescribe
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