david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/interface/linux
Michael Brown 302f1eeb80 [time] Allow timer to be selected at runtime
Allow the active timer (providing udelay() and currticks()) to be
selected at runtime based on probing during the INIT_EARLY stage of
initialisation.

TICKS_PER_SEC is now a fixed compile-time constant for all builds, and
is independent of the underlying clock tick rate.  We choose the value
1024 to allow multiplications and divisions on seconds to be converted
to bit shifts.

TICKS_PER_MS is defined as 1, allowing multiplications and divisions
on milliseconds to be omitted entirely.  The 2% inaccuracy in this
definition is negligible when using the standard BIOS timer (running
at around 18.2Hz).

TIMER_RDTSC now checks for a constant TSC before claiming to be a
usable timer.  (This timer can be tested in KVM via the command-line
option "-cpu host,+invtsc".)

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2017-01-26 08:17:37 +00:00
..
linux_console.c [console] Remove "log message" usage from interactive console defaults 2012-03-27 00:51:50 +01:00
linux_entropy.c [legal] Relicense files under GPL2_OR_LATER_OR_UBDL 2015-03-02 14:17:31 +00:00
linux_nap.c [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
linux_pci.c [legal] Relicense files under GPL2_OR_LATER_OR_UBDL 2015-03-02 14:17:31 +00:00
linux_smbios.c [linux] Provide access to SMBIOS via /dev/mem 2013-12-05 03:16:27 +00:00
linux_time.c [legal] Relicense files under GPL2_OR_LATER_OR_UBDL 2015-03-02 14:17:31 +00:00
linux_timer.c [time] Allow timer to be selected at runtime 2017-01-26 08:17:37 +00:00
linux_uaccess.c [linux] Rewrite headers included in all builds 2015-03-05 02:43:37 +00:00
linux_umalloc.c [linux] Make malloc and linux_umalloc valgrindable 2011-03-27 21:03:05 +01:00