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:Read TSC and the reference counters. Take care of any disturbances

Proto:static u64 tsc_read_refs(u64 *p, int hpet)

Type:u64

Parameter:

TypeParameterName
u64 *p
inthpet
312  thresh = If tsc_khz Then tsc_khz >> 5 Else TSC_DEFAULT_THRESHOLD
315  When i < MAX_RETRIES cycle
316  t1 = get_cycles()
317  If hpet Then p = hpet_readl(HPET_COUNTER) & 0xFFFFFFFF
319  Else p = acpi_pm_read_early()
321  t2 = get_cycles()
322  If t2 - t1 < thresh Then Return t2
325  Return ULLONG_MAX
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