Module Name: src Committed By: ad Date: Thu May 21 21:12:31 UTC 2020
Modified Files: src/sys/arch/x86/acpi: acpi_wakeup.c src/sys/arch/x86/include: i82489var.h src/sys/arch/x86/x86: cpu.c lapic.c x86_machdep.c src/sys/arch/xen/x86: cpu.c src/sys/arch/xen/xen: hypervisor.c xen_clock.c Log Message: - Recalibrate the APIC timer using the TSC, once the TSC has in turn been recalibrated using the HPET. This gets the clock interrupt firing more closely to HZ. - Undo change with recent Xen merge and go back to starting the clocks in initclocks() on the boot CPU, and in cpu_hatch() on secondary CPUs. - On reflection don't use HPET delay any more, it works very well but means going over the bus. It's enough to use HPET to calibrate the TSC and APIC. Tested on amd64 native, xen and xen PVH. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/sys/arch/x86/acpi/acpi_wakeup.c cvs rdiff -u -r1.20 -r1.21 src/sys/arch/x86/include/i82489var.h cvs rdiff -u -r1.191 -r1.192 src/sys/arch/x86/x86/cpu.c cvs rdiff -u -r1.80 -r1.81 src/sys/arch/x86/x86/lapic.c cvs rdiff -u -r1.142 -r1.143 src/sys/arch/x86/x86/x86_machdep.c cvs rdiff -u -r1.135 -r1.136 src/sys/arch/xen/x86/cpu.c cvs rdiff -u -r1.84 -r1.85 src/sys/arch/xen/xen/hypervisor.c cvs rdiff -u -r1.5 -r1.6 src/sys/arch/xen/xen/xen_clock.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.