freebsd-dev/sys/x86
Mark Johnston 62d09b46ad x86: Defer LAPIC calibration until after timecounters are available
This ensures that we have a good reference timecounter for performing
calibration.

Change lapic_setup to avoid configuring the timer when booting, and move
calibration and initial configuration to a new lapic routine,
lapic_calibrate_timer.  This calibration will be initiated from
cpu_initclocks(), before an eventtimer is selected.

Reviewed by:	kib, jhb
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D33206
2021-12-06 10:42:10 -05:00
..
acpica x86: duplicate acpi_wakeup.c per i386 and amd64 2021-09-14 00:23:14 +03:00
bios smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
conf Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
cpufreq Make CPU children explicitly share parent unit numbers. 2021-09-24 23:31:51 -04:00
include x86: Defer LAPIC calibration until after timecounters are available 2021-12-06 10:42:10 -05:00
iommu dmar: Disable protected memory regions after initialization 2021-10-29 10:08:25 +02:00
isa x86: Defer LAPIC calibration until after timecounters are available 2021-12-06 10:42:10 -05:00
linux Drop "All rights reserved" from my copyright statements. 2021-07-20 10:05:50 +03:00
pci Fix "set but not used" in the x86 pci driver. 2021-12-05 15:10:16 -07:00
x86 x86: Defer LAPIC calibration until after timecounters are available 2021-12-06 10:42:10 -05:00
xen x86: Defer LAPIC calibration until after timecounters are available 2021-12-06 10:42:10 -05:00