coreboot-kgpe-d16/payloads/libpayload/arch/x86
Aaron Durbin 152e5a03a1 libpayload: honor TSC information under CONFIG_LP_TIMER_RDTSC
When CONFIG_LP_TIMER_RDTSC is enabled honor the TSC information
exported in the coreboot tables as the cpu_khz frequency. That
allows get_cpu_speed() not to be called which currently relies
on the 8254 PIT. As certain x86 platforms allow that device
to be optional or turned off for power saving reasons, allow
a path where get_cpu_speed() is no longer called. Additionally,
this approach also allows the libpayload to not duplicate logic
that already exists in coreboot.

BUG=chrome-os-partner:50214
BRANCH=glados
TEST=Confirmed in payload TSC frequency is honored instead of
     using get_cpu_speed().

Change-Id: Ib8993afdfb49065d43de705d6dbbdb9174b6f2c4
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/13671
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Andrey Petrov <andrey.petrov@intel.com>
2016-02-19 19:50:25 +01:00
..
Kconfig libpayload: Rename Config.in -> Kconfig 2015-06-12 02:42:43 +02:00
Makefile.inc libpayload: Keep stack boundary small on x86 2015-07-01 20:55:18 +02:00
coreboot.c libpayload: move MRC processing to x86 path and remove ACPI_GNVS duplication 2015-03-20 15:33:47 +01:00
exception.c libpayload: Rework exception hook interface 2015-01-09 07:05:15 +01:00
exception_asm.S libpayload: Rework exception hook interface 2015-01-09 07:05:15 +01:00
exec.S Remove empty lines at end of file 2015-06-08 00:55:07 +02:00
gdb.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
head.S libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
libpayload.ldscript libpayload; put the ldscript into an arch-dependent directory path 2013-02-14 21:32:02 +01:00
main.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
multiboot.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
rom_media.c libpayload: Make Kconfig bools use IS_ENABLED() 2015-06-30 18:55:15 +02:00
selfboot.c libpayload: Introduce new Kconfig to explicitly allow GPL code 2015-01-09 07:06:27 +01:00
string.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
sysinfo.c libpayload: honor TSC information under CONFIG_LP_TIMER_RDTSC 2016-02-19 19:50:25 +01:00
timer.c libpayload: timer: Move the timer drivers from depthcharge to libpayload. 2014-11-13 06:23:07 +01:00
util.S libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
virtual.c libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00