]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Hide acpi_timer_test behind a tunable
authorColin Percival <cperciva@FreeBSD.org>
Tue, 7 Sep 2021 23:58:18 +0000 (16:58 -0700)
committerColin Percival <cperciva@FreeBSD.org>
Wed, 8 Sep 2021 01:31:50 +0000 (18:31 -0700)
commit3c253d03d94e89cf1a26716b58fc27653df2a4f3
treef6c2df7a08f183c0c2630d9ac27c70ae4e023a2d
parent19261079b74319502c6ffa1249920079f0f69a72
Hide acpi_timer_test behind a tunable

When hw.acpi.timer_test_enabled is set to 0, this makes acpi_timer_test
return 1 without actually testing the ACPI timer; this results in the
ACPI-fast timecounter always being used rather than potentially using
ACPI-safe.

The ACPI timer testing was introduced in 2002 as a workaround for
errata in Pentium II and Pentium III chipsets, and is unlikely to be
needed in 2021.

While I'm here, add TSENTER/TSEXIT to make it easier to see the time
spent on the test (if it is enabled).

Reviewed by: allanjude, imp
MFC After: 1 week
sys/dev/acpica/acpi_timer.c