summaryrefslogtreecommitdiffstats
path: root/src/core/timer.c
diff options
context:
space:
mode:
authorMichael Brown2021-05-12 11:55:17 +0200
committerMichael Brown2021-05-12 12:03:01 +0200
commita6a8bb1a9a58becb82dfacc7bc27cf645d0e216c (patch)
tree9e38c4c1d3508b6821a3f70a96f2fee03889876d /src/core/timer.c
parent[rng] Check for TSC support before using RTC entropy source (diff)
downloadipxe-a6a8bb1a9a58becb82dfacc7bc27cf645d0e216c.tar.gz
ipxe-a6a8bb1a9a58becb82dfacc7bc27cf645d0e216c.tar.xz
ipxe-a6a8bb1a9a58becb82dfacc7bc27cf645d0e216c.zip
[undi] Read TSC only when profiling
Avoid using the "rdtsc" instruction unless profiling is enabled. This allows the non-debug build of the UNDI driver to be used on a CPU such as a 486 that does not support the TSC. Reported-by: Nikolai Zhubr <n-a-zhubr@yandex.ru> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/timer.c')
0 files changed, 0 insertions, 0 deletions