HomeFreeBSD

Hide acpi_timer_test behind a tunable

Description

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

(cherry picked from commit 3c253d03d94e89cf1a26716b58fc27653df2a4f3)

Details

Provenance
cpercivaAuthored on Tue, Sep 7, 11:58 PM
Parents
R10:08703a56498d: kern: drop remaining references to removed makesyscalls.sh
Branches
Unknown
Tags
Unknown