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:15
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 PMTimer reference

Proto:static unsigned long calc_pmtimer_ref(u64 deltatsc, u64 pm1, u64 pm2)

Type:unsigned long

Parameter:

TypeParameterName
u64deltatsc
u64pm1
u64pm2
352  If Not pm1 && Not pm2 Then Return ULONG_MAX
355  If pm2 < pm1 Then pm2 += Overrun value
357  pm2 -= pm1
358  tmp = pm2 * 1000000000LL
359  do_div() is NOT a C function(tmp, Number of PMTMR ticks expected during calibration run )
360  do_div() is NOT a C function(deltatsc, tmp)
362  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