Use the TSC delay(9) backend earlier on machines where we can. Also use
authorkettenis <kettenis@openbsd.org>
Tue, 31 Aug 2021 15:11:54 +0000 (15:11 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 31 Aug 2021 15:11:54 +0000 (15:11 +0000)
commit2db82850ca8713d03a0a4614f78e84c4e9666326
tree12f37a26d4bbca1bd875ea849af2145520307afb
parent71cdd4a2d43005a8ab69dae7015f1898616cf304
Use the TSC delay(9) backend earlier on machines where we can.  Also use
the TSC for delays even if there is a skew between the TSCs of the cores
as this doesn't matter for delay(9).

Gets rid of te unreasonable clock speed reports on Intel Tiget Lake CPUs
where the i8254 behaves in weird ways.

ok patrick@, deraadt@, mlarkin@
sys/arch/amd64/amd64/identcpu.c
sys/arch/amd64/amd64/tsc.c