coreboot-kgpe-d16/payloads/libpayload/include/x86/arch
Raul E Rangel 24ae85c3ff libpayload/x86/apic: Add an apic_delay method and calibrate the timer
The apic_delay method will halt the CPU and wait for a timer interrupt
to fire. I went with usec because nsec is too granular to guarantee.

This method will be called from an arch_ndelay() method when the delay
is large enough to justify a sleep.

BUG=b:109749762
TEST=Tested it on grunt by changing the _delay method to call
apic_delay().

Change-Id: I80363f06bdb22d0907f895885e607fde1c4c468d
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/28242
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2018-09-12 14:15:11 +00:00
..
apic.h libpayload/x86/apic: Add an apic_delay method and calibrate the timer 2018-09-12 14:15:11 +00:00
barrier.h libpayload: Add support for memory barriers 2015-03-19 23:24:16 +01:00
cache.h arm: Redesign, clarify and clean up cache related code 2014-11-10 21:34:49 +01:00
cpuid.h libpayload/x86/cpuid: Add a cpuid macro 2018-08-23 16:24:38 +00:00
exception.h libpayload/x86/exception: Add methods to enable/disable interrupts 2018-08-23 16:24:44 +00:00
io.h libpayload: x86: Add read/write{8,16,32} variants that match coreboot 2015-08-28 06:46:28 +00:00
msr.h libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
rdtsc.h libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00
types.h libpayload: Don't sneak in compiler includes 2013-04-18 02:50:28 +02:00
virtual.h libpayload: rename i386 to x86 2012-12-14 22:29:17 +01:00