]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[undi] Read TSC only when profiling
authorMichael Brown <mcb30@ipxe.org>
Wed, 12 May 2021 09:55:17 +0000 (10:55 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 12 May 2021 10:03:01 +0000 (11:03 +0100)
commita6a8bb1a9a58becb82dfacc7bc27cf645d0e216c
tree9e38c4c1d3508b6821a3f70a96f2fee03889876d
parent05fcf1a2f0809b8d87ca5affea1f1bfe0996235b
[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>
src/arch/x86/drivers/net/undinet.c