Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\apic\apic.c Create Date:2022-07-28 08:26:47
Last Modify:2020-03-16 21:21:31 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Temporary interrupt handler and polled calibration function.

Proto:static void __init lapic_cal_handler(struct clock_event_device *dev)

Type:void

Parameter:

TypeParameterName
struct clock_event_device *dev
729  tsc = 0
730  tapic = apic_read(APIC_TMCCT)
731  pm = acpi_pm_read_early()
733  If boot_cpu_has(Time Stamp Counter ) Then tsc = dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer
737  Case ++ == 0
738  lapic_cal_t1 = tapic
739  lapic_cal_tsc1 = tsc
740  lapic_cal_pm1 = pm
741  lapic_cal_j1 = jiffies
742  Break
744  Case ++ == In this functions we calibrate APIC bus clocks to the external timer
745  lapic_cal_t2 = tapic
746  lapic_cal_tsc2 = tsc
747  If pm < lapic_cal_pm1 Then pm += Overrun value
749  lapic_cal_pm2 = pm
750  lapic_cal_j2 = jiffies
751  Break
Caller
NameDescribe
calibrate_APIC_clock