coreboot-kgpe-d16/payloads/libpayload/arch/x86
Nico Huber bc2c12c728 libpayload/x86: Try to discover invariant TSC rate
We can skip the PIT-based TSC calibration if we can derive the invariant
TSC rate from CPUID/MSR data. This is necessary if the PIT is disabled,
which is the default, for instance, on Coffee Lake CPUs.

This implementation should cover all Intel Core i processors at least.
For older processors, we fall back to the PIT calibration.

Change-Id: Ic6607ee2a8b41c2be9dc1bb4f1e23e652bb33889
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34170
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
2020-11-02 06:24:33 +00:00
..
Kconfig treewide/Kconfig: Drop unneeded empty lines 2020-09-21 16:30:14 +00:00
Makefile.inc treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
apic.c payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
coreboot.c libpayload: Cache physical location of CBMEM entries 2020-08-24 09:13:30 +00:00
delay.c payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00
exception.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
exception_asm.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
exec.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gdb.c libpayload/x86/gdb: Migrate to use set_interrupt_handler 2018-09-10 15:01:19 +00:00
head.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
libpayload.ldscript treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
main.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
multiboot.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
rom_media.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
selfboot.c
string.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
sysinfo.c libpayload/arch/x86: Introduce pacc pointer in sysinfo_t struct 2020-10-20 20:35:24 +00:00
timer.c libpayload/x86: Try to discover invariant TSC rate 2020-11-02 06:24:33 +00:00
util.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
virtual.c payloads: Drop unneeded empty lines 2020-09-21 16:20:57 +00:00